- This topic has 3 replies, 3 voices, and was last updated 4 months, 3 weeks ago by Leo.
October 28, 2022 at 7:38 pm #2392299Mario
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.
MarioOctober 29, 2022 at 7:09 am #2392706DavidStaffCustomer Support
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 ?
Adding CSS: http://docs.generatepress.com/article/adding-css/October 29, 2022 at 11:43 am #2393292Mario
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?
MarioOctober 29, 2022 at 4:26 pm #2393435LeoStaffCustomer Support
The 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?
If so GP (or any themes) has no control over that.
Adding CSS: http://docs.generatepress.com/article/adding-css/
- You must be logged in to reply to this topic.