Link to home
Start Free TrialLog in
Avatar of nsitedesigns
nsitedesignsFlag for United States of America

asked on

Studiopress' Enterprise Pro wordpress theme home page widget

How do I modify this so that  the Home Top widget break text up into paragraphs?  Other widgets have a checkbox to insert paragraph breaks but this one does not.

Beta site
http://6ba.036.myftpupload.com/

screenshot
http://screencast.com/t/XpMjQH1Pckq1
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

It's the Genesis Featured Page Widget, right?
Avatar of nsitedesigns

ASKER

Genesis Featured page widget in the Home Bottom widget.
Any thoughts on fixing this?
Sorry, got distracted by som...SQUIRREL!

In theory, this is pretty easy to do. You would just need to write a function that hijacks the default excerpt and returns the text with HTML tags.

In practice, the excerpt is stripped of all tags for a reason.  When you use excerpts dynamically (i.e. with variable content limits), you never know exactly where the text will leave off and thus you run the risk of having open tags in the generated HTML and that can eff up your site's layout in a hurry.  Think of run-on bold or italicized text because the excerpt stopped in the middle.

There are a couple of rewrites to the base Genesis Featured X plugins that may help you address this issue.  I would try to install

https://wordpress.org/plugins/genesis-featured-widget-amplified/

and also define a custom excerpt for whatever you are going to use that plugin to display.  When displaying the content, set the plugin to display the full excerpt (no content limits) and it should render the HTML according to the author.
I know squirrels can be so distracting! - those buggers!

I had another thought on this, what if I linked to a POST instead of PAGE.   I think POSTS auto-add paragraphs.
Not if you use an excerpt/partial content.
i'm not sure what you mean by "not if you use an excerpt/partial content".  I am pretty uneasy with defining a custom code since I really don't know php.  I checked out the link and it hasn't been updated in 2 years.  Dang.
ASKER CERTIFIED SOLUTION
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I was able to get a solution from StudioPress.  I changed widget from Featured PAGE to Featured POST.   I removed the character limit.  Easy breezy!
i'll give you points for your promptness and suggestions even though I fixed it another way.
I changed widget from Featured PAGE to Featured POST.   I removed the character limit.  Easy breezy!

That's the same solution :)  If you remove the character limit, it posts the entire text and that prevents any possibility of broken tags.  You just need to add the external Featured Page widget  I mentioned to get it to work with pages.  Switching to posts works too, but I thought you were only showing a fraction of the content.
Sorry for misunderstanding you.  I thought you were talking about creating a custom widget and that was a little too much to figure out.
p.s.  I LOVE beaker - such a cool avatar!  It makes me smile when I see it!  

The chef is funny too "Fishy fishy fishy bort bort!"
No worries, it's a confusing solution anyway :)

Required viewing for Beaker/Chef fans:

https://www.youtube.com/watch?v=VnT7pT6zCcA

https://www.youtube.com/watch?v=B7UmUX68KtE
LOVE!