-
AuthorPosts
-
July 8, 2015 at 11:12 am #324479
Hi,
My url is http://www.arthica.com (icon stack), what code should I add at my child theme’s functions.php to see the submit form and existing comments in blank templates?.
Thank you
July 8, 2015 at 1:25 pm #324605Hi there,
Thanks for writing in! Please follow the instructions here https://community.theme.co//forums/topic/comments-on-blank-template-2/#post-191366 this will work with Icon stack as well.
If this doesn’t work for you then please provide the link of the page where you’re using a blank template so we could check closely.
Let us know how this goes!
July 9, 2015 at 11:48 am #325753This reply has been marked as private.July 9, 2015 at 2:24 pm #325909Hi there,
Thanks for the URL!
Upon checking, it looks like you did not activate your child theme. Please activate it under Appearance > Themes.
Thanks!
July 10, 2015 at 10:48 am #326767This reply has been marked as private.July 10, 2015 at 3:08 pm #326906Hi again,
This requires a template change, so first remove the previous code from the child theme’s functions.php file. Then create an empty file and name it as template-blank-4.php. Paste the following code inside the file:
<?php // ============================================================================= // VIEWS/ICON/TEMPLATE-BLANK-4.PHP (No Container | Header, Footer) // ----------------------------------------------------------------------------- // A blank page for creating unique layouts. // ============================================================================= ?> <?php get_header(); ?> <div class="x-main full" role="main"> <?php while ( have_posts() ) : the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="entry-wrap"> <?php x_get_view( 'global', '_content', 'the-content' ); ?> </div> </article> <?php endwhile; ?> </div> <?php x_get_view( 'icon', '_template-blank-sidebar' ); ?> <?php x_get_view( 'global', '_comments-template' ); ?> <?php get_footer(); ?>
Save it. Upload the file to /wp-content/themes/x-child/framework/views/icon/ directory via FTP.
Don’t forget to clear your browser’s cache after uploading the file to the server. Let us know how this goes!
July 15, 2015 at 3:46 am #330766Thank you very much, it works very well.
July 15, 2015 at 3:56 am #330780You are welcome.
-
AuthorPosts