Hi,
is there a way to have the formatting of the Avia Layout Builder “Blog Post” widget not centered, and to have way less of an excerpt?
I only would like to see a single sentence for the excerpt if that is possible, and the entire post justified to the left.
Any help would be much appreciated as usual, thank!
Hi,
Can you post the link to your website please?
Regards,
Josue
Hey!
Add this to your child theme functions.php:
function custom_excerpt_length( $length ) {
return 10;
}
add_filter( ‘excerpt_length’, ‘custom_excerpt_length’, 999 );
And this to child style.css
.slide-entry-excerpt{
text-align: center;
}
Cheers!
Josue
Hi Josue,
thanks for the quick reply as usual.
I added the code to the Child theme functions.php and style.css and nothing changed. (see the screen caps)
http://postimg.org/image/m5p8zbljp/
http://postimg.org/image/4gxi7p9sl/
Did I miss something?
Lol I did notice that I left the CSS to “center” and changed that to left, but alas it still did not change.
Hey!
Can you please indicate the page and the element you’re trying to change on the site?
Cheers!
Josue
Hi Josue,
it’s the homepage http://getitdev2.ca/ (see this screen cap)
Hey!
Did you modify the excerpt? It only display the “read more” link. Add this to left align the title and post meta info:
#top .fullsize .template-blog .post-title, #top .fullsize .template-blog .post-meta-infos {
text-align: left;
}
Cheers!
Ismael
Thanks Ismael that worked.