- This topic has 3 replies, 3 voices, and was last updated 4 months, 3 weeks ago by
Leo.
-
AuthorPosts
-
October 28, 2022 at 7:38 pm #2392299
Mario
Hi
On older pages on my website where i’ve used shortcodes the content breaks. Only the portion of the content above the placed shortcode is displayed.
Here is an example – https://www.avidpup.com/best-dog-food-for-goldendoodles/
Om that page there is supposed to be an informational piece of content below the list of the foods. It is seperated by a shortcode that contains a so called hint that places an ad there.
When i remove that shortcode the content underneath it gets displayed again.
Like i said its only on older posts so i suspect something has changed during an update of either generatepress or a plugin i use for the shortcodes which is called Shortcoder.
I create my shortcodes in Shortcoder and place them inside the content inside the shortcode element from Generatepress, which always worked but now somehow stopped working on older posts.
Any idea?
Thanks,
MarioOctober 29, 2022 at 7:09 am #2392706David
StaffCustomer SupportHi there,
the Theme itself has no control over the post content, aside from the CSS styles that may be applied.
So our updates should not have affected that.Couple of questions;
can i see a post where the Shortcode is working correctly?
what code do you use to create the shortcode ? Can you share that ?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 29, 2022 at 11:43 am #2393292Mario
Hey David,
I think i found the issue. The old shortcodes i used (shortcode blocks from Generatepress) mysterious;y turned into to paragraph blocks which are somehow blocking all content underneath it from displaying
So i have this code from Mediavine to place ads in spots to my likings.
This is that code – div class=”content_mobile_hint”></div
I place that code inside a plugin called Shortcoder – https://wordpress.org/plugins/shortcoder/
The code i use inside the shortcode blocks from Generatepress to trigger the above code inside shortcoder – [sc name=”mobile-only-mediavine-hint”][/sc]
Any idea why the Generatepress shortcode blocks (not the Generateblocks one) turned into paragraph blocks?
Thanks,
MarioOctober 29, 2022 at 4:26 pm #2393435Leo
StaffCustomer SupportThe old shortcodes i used (shortcode blocks from Generatepress)
Not sure if I fully understand – GP doesn’t have any shortcode blocks.
Are you referring to the shortcode block from WP core?
https://wordpress.org/support/article/shortcode-block/If so GP (or any themes) has no control over that.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.