No place to include blog landmark header shortcode

Hello there,

I am following the instructions of the following post: https://theme.co/forum/t/category-and-archive-header-landmark/16068 but have no where to put the shortcode for the Blog index page. Wordpress treats this page differently with no editor included. Can you help?

-Joe

Hello there,

I took some of the code from the following forum post: https://theme.co/forum/t/styling-the-blog-index/32927 and made the snippet below to insert that shortcode in. Please let me know if this is done properly and for the purposes of just the blog index page. If not and there needsto be a more specific hook, please let me know.

function add_blog_title() {   
if(is_home()) {
    echo do_shortcode('[awesome_landmark]');     
 }
}
add_action( 'x_after_view_global__slider-below', 'add_blog_title', 10 );

Hi Joe,

Regretfully, we can’t provide a fix and further enhancements to sample codes provided in our forum as they’re only meant to be a guide or help users get started with customization.
Further customization and maintenance of the custom codes should be done by the user by learning how the code works or by hiring or consulting with a 3rd party developer.

If you want to learn more on the actions and filters specific to the X and Pro, you can learn it from here: https://theme.co/docs/actions-filters-and-hooks#x-and-pro-specific-actions-and-filters

Please remember that we don’t offer any support to custom codes and issues related to it.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.