spicerldn
Forum Replies Created
-
I have been provided with a solution!
add_filter( 'generateblocks_do_content', function( $content ) { $args = array( 'post_type' => 'popupbuilder', // Other args if you need them. ); $posts = get_posts( $args ); foreach ( (array) $posts as $post ) { if ( isset( $post->post_content ) ) { $content .= $post->post_content; } } return $content; } );
Thank you for all your help and for looking into this for me.
??
Could you export the popup and send it to [email protected]?
Email sent.
Hi there
Support at GeneratePress said the following:
GenerateBlocks styling is built to work within your content area.
When it comes to third-party locations, integration needs to be specifically added: https://docs.generateblocks.com/article/adding-content-sources-for-dynamic-css-generation/
I have tried to add this to functions.php but I’m not sure if I have the plugin id correct?
add_filter( 'generateblocks_do_content', function( $content ) { $post_ids = array( 5772, 5841, 5843 ); // A post ID to check the content of. Can be dynamically set. foreach ( $post_ids as $post_id ) { if ( has_blocks( $post_id ) ) { $block_element = get_post( $post_id ); if ( ! $block_element || 'sg-popup' !== $block_element->post_type ) { return $content; } if ( 'publish' !== $block_element->post_status || ! empty( $block_element->post_password ) ) { return $content; } $content .= $block_element->post_content; } } return $content; } );
Please can you advise?
Many thanks!
Spicer
Hi there
Yes, I cleared the cache each time I made a change but it’s still the same.
It seems to be treating the button as a link, not a button (colours are the same as the link display settings in the customiser.)
I have also raised a ticket with Generatepress to see if they can help.
Whatever I do, it doesn’t show button styling on the frontend.
Hi there
Thanks for the reply.
All I did was change the size and the line height of 2 headings fonts in the customiser. It was after I did this that the button styling disappeared on the frontend. I reverted the changes but it still looks as per my attached images.
Hi Daan,
Yes, it was yesterday it happened. Also, when I got back into the dashboard, the theme editor and plugins editor had disappeared from view. My hosting support are still trying to work it out. I’ll see if I can get the error messages for you.
Perfect!
Thank you! ??
Also – I have noticed that that on a number of the templates available the text is aligned left and not centred. See screenshot here