Jump to content
itarsenal

Icon Font HTML Stripping

Recommended Posts

itarsenal+    3
itarsenal

The visual editor strips out this

 

<p><i class="icon-thumbs-up-large"></i><strong>IT Arsenal Likes:</strong> Gregs wisdom, powerful actionable ideas, have a conversation with him.</p>

 

for this, removing my icon

 

<p><strong>IT Arsenal Likes:</strong> Gregs wisdom, powerful actionable ideas, have a conversation with him.</p>

 

How can I get around this?

 

-r


Robert Granholm

http://itarsenal.com | Technical Support for Online Entrepreneurs

Share this post


Link to post
Share on other sites
Rob    547
Rob

Hi R,

 

When applying code to any post or page edit field, it's strongly advisable to use the Text mode.  Visual will strip code out, while text mode keeps it.  One little note, WordPress doesn't like the <i> tag for italics.  Instead, it uses <em>.  I'd suggest adjusting that accordingly and when your code enhanced text is placed in the Text Mode, you'll see some results.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Simon    247
Simon

The visual editor will not recognise the <i> tag, unless you use a filter to add it, and trust me thats a real PITA and it still strips it lol

 

Take Robs advice and never use the editor, it sucks anyway.

Share this post


Link to post
Share on other sites
beardedavenger    158
beardedavenger

You can also try this plugin, it's what a lot of people use because of this issue:

http://wordpress.org/extend/plugins/preserved-html-editor-markup/

  • Like 1

Something big is coming for DMS + photographers.

http://fotostheme.com

 

Nick Haskins & CO - New home for all of my PageLines Store products! 

http://nickhaskins.co

 

Better DMS - News, Tutorials, and Tips

http://betterdms.com

 

Share this post


Link to post
Share on other sites
itarsenal+    3
itarsenal

Thanks appreciate the advice and plugin.

 

Asking not to use the visual mode is a bummer, I like code and all but it's just faster to throw down content.

 

Cheers!


Robert Granholm

http://itarsenal.com | Technical Support for Online Entrepreneurs

Share this post


Link to post
Share on other sites
Rob    547
Rob

R,

 

You can use the Text mode and swap back and forth to see the visual mode very easily.

 

See the image below.  The tabs at the top right let you swap back and forth while creating posts or pages. Even works for Boxes, Features or other elements that have an editing field.

 

You'd just paste or edit with code in the Text mode, then visually modify using the tools available in Visual Mode.  Wordpress, not PageLines wisely made that so that people do not accidentally post code into visible areas of their sites.

 

post-6-0-45289100-1358813427_thumb.jpg


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×