Tagged: x
-
AuthorPosts
-
July 2, 2016 at 2:07 pm #1069775
HoustonParticipantI 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,
HoustonJuly 2, 2016 at 11:50 pm #1070066
Rue NelModeratorHello 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.
July 8, 2016 at 11:14 am #1078062
HoustonParticipantThat 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,
HoustonJuly 8, 2016 at 11:20 am #1078084
HoustonParticipantAlso, how would I go about putting the Mailchimp Newsletter signup form code on this blog index page?
Many thanks,
HoustonJuly 8, 2016 at 11:01 pm #1078868
RadModeratorHi 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.
July 9, 2016 at 12:04 pm #1079432
HoustonParticipantPerfect, that will do it.
July 9, 2016 at 11:10 pm #1079854
Rue NelModeratorAlright then. Please let us know how it goes.
Have a great weekend.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1069775 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
