Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
popngen
tagDiv Member

Understood, thank you!

popngen
tagDiv Member

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>

popngen
tagDiv Member

Nevermind,

Found it!

<div class=”td-short-content”>
<?php $content = get_the_content();
$content = strip_tags($content);
echo substr($content, 0, 100);?>
</div>

popngen
tagDiv Member

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!

popngen
tagDiv Member

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.

popngen
tagDiv Member

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.
popngen
tagDiv Member

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.

popngen
tagDiv Member

Thanks Bogdan! Explains lots.

popngen
tagDiv Member

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.

popngen
tagDiv Member

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.

Viewing 10 posts - 1 through 10 (of 10 total)