Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #25672

    Hi,

    I having some formatting issues when placing a third-party short code inside your layout short code or visual editor.

    https://www.dropbox.com/s/dh167j654gk5pxl/Voila_Capture320.png

    you can see in the image the spacing the theme short code adds. I have spent hours playing in firebug but can not figure it out. I would like to use your themes layout elements for formatting, and must have the third party short code to get my dynamic content.

    please help.

    thanks,

    MJ

    #127797

    Hi,

    We can’t test this unless you give us a link to your website.

    Regards,

    Ismael

    #127798
    #127799

    Any indication on how to fix the display issues?

    #127800

    bump

    #127801

    Hi!

    Please try to insert following code into the quick css field

    .wolfnet_listings br{
    display: none !important;
    }

    Best regards,

    Peter

    #127802

    this helped thank you. I still have some formatting issues, but this is caused by the plugin

    #127803

    Hi!

    Great, glad the styling/layout looks better now :)

    Best regards,

    Peter

    #127804

    What’s up Dude, i talked to the plugin author and he said:

    “…JavaScript is being wrapped in paragraph tags. This is something that WordPress does when it is processing content. Normally this isn’t an issue with shortcode content however I have seen it happen with several “premium” theme frameworks and plugins which attempt to do cache. Essentially what happens in the content gets rendered and saved to the cache then it gets re-rendered when it is read from the cache and WordPress interprets line breaks and paragraphs and then adds paragraph tags. Obviously this creates unexpected consequences. The themes that I have encountered this with offered a [raw][/raw] shortcode which needed to wrap around our shortcode to prevent this from happening. Take a look at the “wpauto” filter (http://codex.wordpress.org/Function_Reference/wpautop).”

    Does enfold have such a raw short code?

    #127805

    Hi,

    Did you try <code></code> instead of the raw shortcode?

    I think it is possible to wrap shortcodes inside a shortcode. I tested this on my end.

    Regards,

    Ismael

    #127806

    code did not work. still have the added <p>

    #127807

    would this affect any of your short codes?

    function my_formatter($content) {

    $new_content = '';

    $pattern_full = '{([raw].*?[/raw])}is';

    $pattern_contents = '{[raw](.*?)[/raw]}is';

    $pieces = preg_split($pattern_full, $content, -1, PREG_SPLIT_DELIM_CAPTURE);

    foreach ($pieces as $piece) {

    if (preg_match($pattern_contents, $piece, $matches)) {

    $new_content .= $matches[1];

    } else {

    $new_content .= wptexturize(wpautop($piece));

    }

    }

    return $new_content;

    }

    remove_filter('the_content', 'wpautop');

    remove_filter('the_content', 'wptexturize');

    add_filter('the_content', 'my_formatter', 99);

    #127808

    [raw]Unformatted code[/raw]

    #127809

    Hi,

    I’m trying to install the Vimeography plugin with a short code, but the layout is being messed uo.

    I’ve tried wrapping the code in [raw] and ` but it doesn’t fix it.

    This is what it should look like:

    http://wowvideoproduction.co.uk/test/</p&gt;

    This is how it displays within the Advanced layout editor:

    http://wowvideoproduction.co.uk/videographer-award-winning-nationwide-service

    One piece of advice which the developer give (and I don’t know the answer to is the following:

    - Make sure that your theme is calling the wp_footer(); function so that all of the Vimeography stylesheets are printed.

    Please could you help?`

    #127810

    Here is the link to what it should look like (re-posted):

    http://wowvideoproduction.co.uk/test

    #127811

    Hi jamesmac007,

    If the shortcode isn’t working with the Advanced Layout Editor you’ll need to use the regular visual editor and shortcodes to build the layout. There are and will always be some plugins that just don’t mesh well with the Advanced Layout Editor.

    Regards,

    Devin

    #127812

    Devin,

    I have tried this with my Issue and still have the same result.

    #127813

    Do you have an example of it added into the regular visual editor?

    If its not working there then it could be a fundamental conflict with the theme code which doesn’t leave us much ability to try and address it.

Viewing 18 posts - 1 through 18 (of 18 total)

The topic ‘Nested short codes’ is closed to new replies.