Tagged: short codes, Vimeography
-
AuthorPosts
-
July 2, 2013 at 9:09 pm #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
July 3, 2013 at 6:40 am #127797July 3, 2013 at 3:18 pm #127798http://spresd.com/pacific-beach/ – nested
http://spresd.com/homes-sold-pacific-beach-last-60-days/ – not nested
July 5, 2013 at 6:31 pm #127799Any indication on how to fix the display issues?
July 8, 2013 at 5:51 am #127800bump
July 8, 2013 at 8:53 am #127801Hi!
Please try to insert following code into the quick css field
.wolfnet_listings br{
display: none !important;
}Best regards,
Peter
July 9, 2013 at 11:40 pm #127802this helped thank you. I still have some formatting issues, but this is caused by the plugin
July 10, 2013 at 12:01 pm #127803Hi!
Great, glad the styling/layout looks better now :)
Best regards,
Peter
July 10, 2013 at 10:45 pm #127804What’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?
July 11, 2013 at 2:22 am #127805Hi,
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
July 11, 2013 at 6:34 am #127806code did not work. still have the added <p>
July 11, 2013 at 5:44 pm #127807would 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);
July 11, 2013 at 5:45 pm #127808[raw]Unformatted code[/raw]
July 12, 2013 at 11:37 am #127809Hi,
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>
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?`
July 12, 2013 at 2:10 pm #127810Here is the link to what it should look like (re-posted):
July 14, 2013 at 4:12 pm #127811Hi 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
July 24, 2013 at 12:28 am #127812Devin,
I have tried this with my Issue and still have the same result.
July 25, 2013 at 5:15 am #127813Do 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.
-
AuthorPosts
- The topic ‘Nested short codes’ is closed to new replies.