Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1069775
    Houston
    Participant

    I am wanting to add some extra static info to the blog index page. I am using icon and was wondering if you could tell me what page I would need to copy over to the child theme and edit it so show these modifications I want to include. This info should ONLY be seen on the blog index page.
    http://askaricollection.com/blog/

    Many thanks,
    Houston

    #1070066
    Rue Nel
    Moderator

    Hello Houston,

    Thanks for writing in! Since you have your child theme active and ready, please follow the following steps below:
    1] Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
    2] Insert the following code into that new file

    <?php
    
    // =============================================================================
    // VIEWS/ICON/WP-INDEX.PHP
    // -----------------------------------------------------------------------------
    // Index page output for Icon.
    // =============================================================================
    
    ?>
    
    <?php get_header(); ?>
    
      <div class="x-main full" role="main">
        <div class="x-container offset-bottom">
    
          <?php if ( is_home() ) : ?>
    
          	<div class="custom-content">
          		<p>Add your custom content here</p>
          	</div>
    
          <?php endif; ?>
    
          <?php x_get_view( 'global', '_index' ); ?>
    
        </div>
      </div>
    
      <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    3] Save the file named as wp-index.php
    4] Upload this file to your server in the child theme’s folder
    wp-content/themes/x-child/framework/views/icon/

    Please let us know if this works out for you.

    #1078062
    Houston
    Participant

    That works perfectly, but now I am wondering since the content that I am wanting to put in will probably be a plugin that will feature the latest post at the top of this masonry layout. Will look something like this: https://hello.jcrew.com/

    Am I headed down the correct path or will the plugin just take care of this natively? I have not found the plugin yet, I am making an assumption unless you have a better method of accomplishing this?

    Many thanks,
    Houston

    #1078084
    Houston
    Participant

    Also, how would I go about putting the Mailchimp Newsletter signup form code on this blog index page?

    Many thanks,
    Houston

    #1078868
    Rad
    Moderator

    Hi there,

    Is it the signup form from Mailchimp, or shortcode from X Mailchimp extension? Either way, you can add it by changing a part of the code from this,

    <?php if ( is_home() ) : ?>
    
          	<div class="custom-content">
          		<p>Add your custom content here</p>
          	</div>
    
          <?php endif; ?>
    

    to these,

    <?php if ( is_home() ) : ?>
    
          	<div class="custom-content">
          		<p>Add your custom content here</p>
    
    <--!REPLACE THIS LINE WITH YOUR MAICHIMP EMBED CODE-->
    
          	</div>
    
          <?php endif; ?>

    or

    <?php if ( is_home() ) : ?>
    
          	<div class="custom-content">
          		<p>Add your custom content here</p>
    
    <?php echo do_shortcode('[x_subscribe form="435"]') ; ?>
    
          	</div>
    
    <?php endif; ?>
    
    

    Hope this helps.

    #1079432
    Houston
    Participant

    Perfect, that will do it.

    #1079854
    Rue Nel
    Moderator

    Alright then. Please let us know how it goes.

    Have a great weekend.

  • <script> jQuery(function($){ $("#no-reply-1069775 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>