Site logo

Archived topic

Having issues with customizing blog and post layouts

23 replies · Started by David Jiménez on April 27, 2022

Viewing posts 1–15 of 24

Greetings,

I'm customizing the blog and post layout using Elements and I'm having two issues:
My Blog

1. I am using an Element of type Block - Right Sidebar to display on all posts. The problem is that I add a block with the list of blog categories and a WP Search block (these two blocks are from Ultimate Addons for Gutenberg plugin) These blocks look good in the block editor preview, but when you see on FrontEnd neither of these two blocks is displayed correctly as can be seen in the images below:

View on the BackEnd:
https://snipboard.io/9rnJP6.jpg
View in the FrontEnd:
https://snipboard.io/fWgemO.jpg
2. I am using an Element type Block - Page Hero to be displayed on the blog. The problem is that I add a Post Carousel block from the Ultimate Addons for Gutenberg plugin) This block looks good in the block editor preview but when you go to see it in the FrontEnd it does not show correctly as you can see in the images below:

View on the BackEnd:
https://snipboard.io/kQ5Sv6.jpg
View in the FrontEnd:
https://snipboard.io/EihmSe.jpg
What could I do about it to solve the problem, thanks in advance

David Jimenez

Hi David,

I just copied and pasted the script you suggest in the topic but it's the same, could you help me please?
Maybe I should do something else.

Regards

Try this:

add_action( 'wp_enqueue_scripts', 'enqueue_scripts_by_post_id' );

function enqueue_scripts_by_post_id() {

    if ( 'gp_elements' == get_post_type() ) {
        $post_id = get_the_id();
        // Create Instance. Pass the Post ID.
        $post_assets_instance = new UAGB_Post_Assets( $post_id );

        // Enqueue the Assets.
        $post_assets_instance->enqueue_scripts();

    }
    
}

Is it possible to see these elements on the site ?

Is it possible to disable the Litespeed cache ?

LiteSpeed cache its disabled for now.

Yeah - i want to make sure that what we see isn't a cached version

ok, LiteSpeed cache its disabled for now.

Hmmm.... ok so its not the Cache.
Would you be able to reach out to the plugin developer and ask them how that PHP Snippet is supposed to work ?

Try this CSS:

.sidebar ul.wp-block-categories-list.categoria.wp-block-categories li {
    border-bottom: 1px dotted;
}

Thanks, It works for me.

This archived topic is closed to new replies.