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

    wildasia
    Participant

    Hi –

    My working site is: http://wildasia.org/mei/

    SLIDER

    I have created a page and got the slider to work – yay! What I am puzzled is how does I make it appear on the homepage? I need to find a way of getting the slider to appear there. Need some pointers where to look to add the slider shortcode.

    BLOG AND HOME

    Another problem I have – I created a page called “Blog” – the idea is I wanted to have posts with the category “blog” appear there. How is this enabled or created?

    For the Homepage – its displaying all posts but it would be good to allow only certain categories or tags. Is there a way to customizes this within the theme?

    Thanks for any tips.

    Reza

    #824462

    Friech
    Moderator

    Hi Reza,

    Thanks for writing in! Your current HOME page is the BLOG Index Page. To add a slider above the master head of the Blog Index Page we need to modify a template. But first we need to install the child theme, you can follow the instruction provided here on how you can install a child theme.

    After that login to your server via FTP and navigate to this directory: \wp-content\themes\x-child\framework\views\integrity\. create a file named wp-header.php and copy the code below as the content.

    <?php
    
    // =============================================================================
    // VIEWS/INTEGRITY/WP-HEADER.PHP
    // -----------------------------------------------------------------------------
    // Header output for Integrity.
    // =============================================================================
    
    ?>
    
    <?php x_get_view( 'global', '_header' ); ?>
    
      <?php x_get_view( 'global', '_slider-above' ); ?>
    
       <?php 
      if (is_home()): 
        echo do_shortcode('[rev_slider alias="myslider"]');
      endif; 
    	?>
    
      <header class="<?php x_masthead_class(); ?>" role="banner">
        <?php x_get_view( 'global', '_topbar' ); ?>
        <?php x_get_view( 'global', '_navbar' ); ?>
        <?php x_get_view( 'integrity', '_breadcrumbs' ); ?>
      </header>
    
      <?php x_get_view( 'global', '_slider-below' ); ?>
      <?php x_get_view( 'integrity', '_landmark-header' ); ?>

    Replace the [rev_slider alias="myslider"] with your actual slider shortcode.

    Regretfully, I am not entirely certain what it is you would like to accomplish with BLOG AND HOME, because like I said above your current landing page is both your Home and Blog index page. If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (a link to a similar example site would be very helpful, or perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.

    Cheers!

    #824516

    wildasia
    Participant

    Thanks for this. It was setup by a third-party that is not around to help me troubleshoot!

    Basically – HOME as for all new “posts”. A list of articles (with featured image) mainly.

    BLOG was then the full list of articles. Ideally it would be good if we could filter categories in the same as it is with Portfolio.

    Next question – how do I fix this so that it makes sense (ie as you guys would set it up) and secondly, would this mean I need to access the template files directly via the server?

    As you can see I am new to tinkering with WP/Themes!

    Reza

    #824519

    wildasia
    Participant

    p.s. the masthead should be BELOW the Masthead. Not above.

    #824521

    wildasia
    Participant

    pps. I found this – would this not work for me too?

    =====

    Hey there,

    Yes, that is possible. Please set the page you created to be your blog page and go to Reading > Settings and set that page as Posts page. For the comments, you can either disable them manually https://www.youtube.com/watch?v=zD08CkyaZYw or use a plugin like https://wordpress.org/plugins/disable-comments/

    Hope that helps. 🙂

    #824654

    Christopher
    Moderator

    Hi there,

    #1 Please change stack to ‘Ethos’ and enable ‘Filterable Index’ from Customize -> Ethos -> Blog options.

    #2 Please follow this link https://www.siteground.com/kb/connect-to-ftp-using-filezilla/ and ask your host provider to provide you with FTP credentials, connect to FTP and replace previous code with following if you want to display slider below masthead :

    <?php
    
    // =============================================================================
    // VIEWS/INTEGRITY/WP-HEADER.PHP
    // -----------------------------------------------------------------------------
    // Header output for Integrity.
    // =============================================================================
    
    ?>
    
    <?php x_get_view( 'global', '_header' ); ?>
    
      <?php x_get_view( 'global', '_slider-above' ); ?>
    
      <header class="<?php x_masthead_class(); ?>" role="banner">
        <?php x_get_view( 'global', '_topbar' ); ?>
        <?php x_get_view( 'global', '_navbar' ); ?>
        <?php x_get_view( 'integrity', '_breadcrumbs' ); ?>
      </header>
    
      <?php x_get_view( 'global', '_slider-below' ); ?>
    <?php 
      if (is_home()): 
        echo do_shortcode('[rev_slider alias="myslider"]');
      endif; 
    	?>
      <?php x_get_view( 'integrity', '_landmark-header' ); ?>

    #3 In regards with disabling comment, please update x and cornerstone and if it doesn’t help provide us with login credentials.

    Hope that helps.