Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #842193

    marilynwo
    Participant

    Hi, my end goal is to put an inline optin form on the top of my blog page, but setting my blog page as my “posts page” in the “reading” section does not let me do that.

    So I used Visual Composer instead. However, even adding “Post Masonry Grid” in the blog page doesn’t help. It’s blank white space in the frontend. I tried adding other elements and they are fine.

    What could be the problem? Thanks!

    #842510

    Rad
    Moderator

    Hi Marilyn,

    Thanks for writing in.

    That’s because blog page is not really meant to be edited through admin. Any builder will not work.

    Wordpress will only use the slug /blog/, but it will display a blog template instead of a page template. Builders will only work on page or post templates.

    Though, you can try adding this code to your child theme’s functions.php

    add_action('x_before_view_global__script-isotope-index', 'add_blog_content' );
    
    function add_blog_content ( ) {
    
    if( is_home() ) {
    
    $post = get_post ( get_option( 'page_for_posts' ) );
    
    echo apply_filters('the_content',  $post->post-content );
    
    }
    
    }

    Now, your content that is currently added to your blog page in admin will not be displayed on your blog front page too. Hence, cornerstone content will be displayed too.

    Hope this helps.

    #842591

    marilynwo
    Participant

    Thanks for that! It didn’t work but appreciate your help.
    I understand what you mean by blog page is not meant to be edited by admin, but the Visual Composer works fine on Jupiter theme.

    If that’s the case, must I create another page that says anything other than the word “blog” for it to work?

    Or is there any other option to put an inline optin form above my blogroll or posts in the “blog” page?

    Thank you!

    #842649

    Lely
    Moderator

    Hi There,

    If you’re using Renew, please try this code instead on child theme’s functions.php:

    function add_custom_content () {
    
      if( is_home() ) {
        $post = get_post( get_option( 'page_for_posts' ) ); ?>
        <article <?php post_class(); ?>>
          <div class="entry-wrap">
            <?php echo apply_filters( 'the_content', $post->post_content ); ?>
          </div>
        </article>
      
      <?php }
    
    }
    add_action('x_after_view_renew__landmark-header', 'add_custom_content');
    

    To add content, please remove BLOG page first as POSTS PAGE on SETTINGS READING. This will enable Cornerstone for this page. Then add your Content using Cornerstone. If your done editing/adding the content, please save the page. Now set this BLOG page again as POST PAGE on SETTINGS > READING. This time we have content already and then above code will display the content.

    Hope this helps.

    #842832

    marilynwo
    Participant

    Thanks for that! By the way, how do I add a blogroll or all the posts within cornerstone? I see a function to add “recent posts” but that only adds a limited number of posts. Is there another function? Thank you!

    #842876

    Zeshan
    Member

    Hi Marilyn,

    Yes, you can use Recent Posts element to display blog posts or portfolio items. If you want to show more than 4 posts, you can duplicate the Recent Posts element and set its ‘Offset’ value to 4. For more detail on how to use Recent Posts and its offset value, check out our demo on Recent Posts shortcode: http://theme.co/x/demo/integrity/1/shortcodes/recent-posts/

    Alternatively, you can use Essential Grid to show blog posts with various options on any page. For more information, refer to our knowledge base article on Essential Grid.

    Thank you!

    #843679

    marilynwo
    Participant

    Thank you! I will be trying this out first, will let you know again if it works ok or not, thanks.

    On the side note, just wondering about how Envato support works. Like right now, my support based on their terms has expired, does this mean I won’t be qualified to update my Xtheme version until I renew? But I can still ask my questions here whether or not my support with Envato has expired. Thanks!

    #843995

    Darshana
    Moderator

    Hi there,

    You can still get your X theme updates and also you can use this customer support channel when needed. That is one of the special benefit that you get when purchasing X.

    Thanks!

    #844059

    marilynwo
    Participant

    Thanks for your response, is there a license to purchase for agents to do web design for clients using Xtheme? Thanks!

    #844060

    marilynwo
    Participant

    Sorry, I’ve created a new thread for this, thanks

    #844071

    Christopher
    Moderator

    Thank you.