NiceThemesHTML in Info Box? – NiceThemes http://nicethemeswp.com/forums/topic/html-in-info-box/feed/ Wed, 23 Apr 2025 13:20:30 +0000 http://bbpress.org/?v=2.5.12-6148 en-US http://nicethemeswp.com/forums/topic/html-in-info-box/#post-511 <![CDATA[HTML in Info Box?]]> http://nicethemeswp.com/forums/topic/html-in-info-box/#post-511 Fri, 01 Feb 2013 03:40:01 +0000 meltnyc 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,
Cole

]]>
http://nicethemeswp.com/forums/topic/html-in-info-box/#post-519 <![CDATA[Reply To: HTML in Info Box?]]> http://nicethemeswp.com/forums/topic/html-in-info-box/#post-519 Fri, 01 Feb 2013 13:48:22 +0000 Juanfra Aldasoro Hi 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.

]]>