Understood, thank you!
A better way to use substr incase anyone in the future finds this post useful:
<div class=”td-short-content”>
<?php $content = get_the_content();
$content = strip_tags($content);
echo substr($content, 0, strpos($content, ‘ ‘, 155));?>…
</div>
Nevermind,
Found it!
<div class=”td-short-content”>
<?php $content = get_the_content();
$content = strip_tags($content);
echo substr($content, 0, 100);?>
</div>
I figured out the “read more” part:
<div class=”td-read-more”>
“> Read More…
</div>
… still looking for help on the non-manual excerpt/post summary part!
thank you!
Bogdan,
I managed to fix my css issues, by removing functions.php and using
@import (../Newspaper/style.css)
.. in my child theme’s style.css. I then reloaded the theme and now my custom css is working. I still don’t know what the problem was.
Thank you for the tip, I will definitely try using live css to test from here on out.
Maybe it’ll be easier if I simply just edit the newspaper style.css instead of using the custom style css area?
-
This reply was modified 9 years by
popngen.
Bogdan,
I don’t know if I’m misunderstanding you, but you can see in the example that I gave, that I’m using !important. It isn’t working for me unfortunately.
Also, I think you mean a single semi-colon, correct?
To clarify, I am using a child-theme with Newspaper.
Thanks Bogdan! Explains lots.
Alin,
Thank you for the prompt reply. Your support is beyond fantastic!
I just removed import_video_slider_bg to clean things up, and it’s back to the default: white/clear.
Last question:
I’m actually using Big Grid 2, and yes I’m using the video demo as a start. If I change the default color directly on the demo style sheet, will it get over written if Newspaper gets updated? I am using Newspaper through my child theme.
to correct myself, i’m also using this:
.vc_row.wpb_row.td-pb-row.import_video_slider_bg.vc_row-has-fill.vc_row-o-full-height.vc_row-o-columns-stretch.vc_row-o-equal-height.vc_row-flex.vc_general.vc_parallax.vc_parallax-content-moving {
background-color: white;
}
Without both css changes, it will remain black.