- meltnyc February 1, 2013 at 3:40 am
Hello,
Is it possible to use HTML in the info boxes? For example, I’d like to use one to display our specials instead of a picture. I can get the text to show up, but can’t seem to control it from there despite trying a few different tags. Mainly just looking for the ability to put text in bold and add spaces between lines.
Thanks,
ColeJuanfra Aldasoro February 1, 2013 at 1:48 pmHi Cole,
Thanks for writing. Infoboxes actually show the excerpt ( It’s like a little introduction of the full content ), and they don’t show html code.
However, I can explain you how to do this. You’ll need to edit your template-home.php file.
If you want to remove the images from the infoboxes, just remove these lines of code:
< ?php if ( (function_exists( 'has_post_thumbnail' ) ) && ( has_post_thumbnail() ) ) : ?> < ?php endif; ?>
And to show the full content of the infobox, instead of just the excerpt – Change this line of code ( line 80 )
< ?php nice_excerpt( 150 ); ?>
With this
< ?php the_content(); ?>
I’ve seen you’re not using your home widgets. Maybe by using them you’ll save to change all this. You can use HTML in widgets.
Have a nice day,
Juan.
This topic is marked as resolved
Only the topic author can re-open this thread.