WordPress.org

Ready to get started?Download WordPress

Forums

Shortcodes Pro
[resolved] Tags in the content between shortcode being rendered as (7 posts)

  1. surfing47
    Member
    Posted 1 year ago #

    Love this plugin...just found it. However, html tags within the shortcode tags are being encoded/not encoded properly. For example: my <h1> tag is showing like an encoded h1 tag and therefore rendering in the browser as text like
    <h1 class=”pageHeading”>Test</h1> . Any ideas?

    Here is the gist of the shortcode I created

    <div style="background:url(%%backgroundurl%%) %%horizontalbackground%% %%verticlebackground%% #f8f8f8;width:%%boxwidth%%;height:%%boxheight%%;padding:%%paddingtop%% %%paddingright%% %%paddingbottom%% %%paddingbottom%%; -webkit-border-radius: 25px;-moz-border-radius: 25px;border-radius: 25px;border:1px solid #ede9e9;-webkit-box-shadow: #B3B3B3 2px 2px 2px,0px 0px 16px 16px rgba(241,241,241,0.4) inset;-moz-box-shadow: #B3B3B3 2px 2px 2px,0px 0px 16px 16px rgba(241,241,241,0.4) inset; box-shadow: #B3B3B3 2px 2px 2px,0px 0px 16px 16px rgba(241,241,241,0.4) inset;text-align:%%textalign%%;float:%%float%%;">%%content%%</div>

    The content has a simple <h1> Title </h1>

    Thanks!

    http://wordpress.org/extend/plugins/shortcodes-pro/

  2. surfing47
    Member
    Posted 1 year ago #

    In response to my post above - as a band-aid I put

    $content=html_entity_decode( $content );

    on line 380 of class-shortcodespro-base.php to use as a quick fix which seemed to solve the problem. However, a more permanent solution would probably be best with plugin updates.

  3. surfing47
    Member
    Posted 1 year ago #

    nevermind.. I am an idiot. I was in visual mode when editing. Awesome plugin!

  4. surfing47
    Member
    Posted 1 year ago #

    resolved.

  5. Matt
    Member
    Plugin Author

    Posted 1 year ago #

    Hi surfing47!,

    Thanks for coming back to post the answer,

    Kind Regards!

  6. decodat
    Member
    Posted 1 year ago #

    thanks, It was interesting, can i using plugin in Farsi (persian) language?

    our site is [link moderated] decodat decoration company
    i hope hear from u soon.

  7. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    @decodat

    please start a new topic.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.