Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #1054687
Default Blog Template
Closed

Comments

  •  2
    Justin started the conversation

    Hello,

    i have activated thegem child theme and want to change the default blog view to example "BLOGLIST MULTI AUTHOR".

    Background:

    I created a page and added the Element "Blog & News" to show my posts. So far so good, but if i click on a blog category url i receive the classic blog style.

    Then i went to Settings -> Reading and select my page as blog page. The problem is that the VC-Editor is now disabled at that page.

    I did not find hints in the documentation.

    Its seems that i have to edit the code. Please tell me the right file/line.

    Best regards

    Justin Marks


  •  2
    Justin replied

    Resolved: Changed post loop in "index.php" and copied "content-blog-item-multi-author.php" into theme root folder.


    <?php
       if ( have_posts() ) {
          if(!is_singular()) { 
             wp_enqueue_style('thegem-blog');
             wp_enqueue_style('thegem-additional-blog');
             wp_enqueue_style('thegem-blog-multi-author');
             wp_enqueue_script('thegem-scroll-monitor');
             wp_enqueue_script('thegem-items-animations');
             wp_enqueue_script('thegem-blog');
             wp_enqueue_script('thegem-gallery');
             echo '<div class="blog blog-style-multi-author">';
          }
          while ( have_posts() ) : the_post();
             get_template_part( 'content', 'blog-item-multi-author' );
          endwhile;
          if(!is_singular()) { thegem_pagination(); echo '</div>'; }
       } else {
          get_template_part( 'content', 'none' );
       }
    ?>