Loop is wrapping all my text in div tags
This support request was posted in Paeon by kevllar
- kevllar April 15, 2014 at 12:41 am
Hi Nice guys,
The loop on the home page template is wrapping my content in div tags. How can I fix it so it uses tags instead? I’ve tried searching for any arrays or filters but I’m stumped. Can you help? I’m using a child-theme by the way.
I added this code to the home page. But all I get are div tags.
” . __( ‘Pages:’, ‘nicethemes’ ), ‘after’ => ” ) ); ?>
Thanks!
kevllar April 15, 2014 at 12:43 amThe loop on the home page template is wrapping my content in div tags. How can I fix it so it uses P tags instead? I’ve tried searching for any arrays or filters but I’m stumped. Can you help? I’m using a child-theme by the way.
I added this code to the home page. But all I get are div tags.
`
” . __( ‘Pages:’, ‘nicethemes’ ), ‘after’ => ” ) ); ?>
`
Thanks!
Juanfra Aldasoro April 15, 2014 at 1:27 amHello there,
Thanks for writing. I can’t see the code.
Have you added the code through the editor? Maybe you’ve copied the text directly from an editor that automatically generated the divs (like word, for example).
If you’ve copied the content directly from there, I’d recommend you to check the “Text” view in the editor, and edit it directly from there.
Best,
Juan.Juanfra Aldasoro April 15, 2014 at 1:34 pmThank you.
As I’ve said, it has to do with the content you’ve inserted in your page.
Go to your site, when in the home page, click “Edit Page” on top.
You’ll see the editor. In the content editor, you have two tabs: “Visual” and “Text”. Click “Text” and you’ll see the html of the content that you’re inserting. There you can find the divs.
Best,
Juankevllar April 15, 2014 at 2:14 pmMy gawd, you’re absolutely right. I didn’t even think to look there. I’m so tired. Feel like a turd. Sorry about Juan.
Think I’ll take a nap now.
Cheers,
Kevin
This topic is marked as resolved
Only the topic author can re-open this thread.