Home posts Canvas theme
-
Hello from Barcelona!
The subtitules are off on the home post page: https://www.viajarporlibre.net
but works fine on results page (https://www.viajarporlibre.net/tag/viajar-a-colombia/) or single post.Could you help me?
Thanks
-
Hi there,
What do you mean they are off? Can you give me a bit more detail?
Thank you!
I don’t know, i’m not an expert developer… add a line on code page is possible?
Thank you
Jordi
Hi Jordi,
I think I misunderstood you. When you say that they are off, do you mean that they are turned off or that something is wrong with how they are displayed?
Cheers,
PhilipHi Philip,
Subtitles are not displayed on the home page (https://www.viajarporlibre.net ) but are shown in single posts or results page.
Cheers
Jordi
help please!!! regards!!!
Hi there. There’s no need to bump this. I haven’t forgotten about you.
In short, this issue is likely due to the way that your index file for posts has been coded. Your titles are probably not being used within the loop. You can still take advantage of template tags in the plugin to show subtitles on your home page. Can you post the code of your blog index here so I can tell you where to put it?
Thank you!!!
index.php:
<?php /** * Index Template * * Here we setup all logic and XHTML that is required for the index template, used as both the homepage * and as a fallback template, if a more appropriate template file doesn't exist for a specific context. * * @package WooFramework * @subpackage Template */ get_header(); global $woo_options; ?> <!-- #content Starts --> <?php woo_content_before(); ?> <div id="content" class="col-full"> <div id="main-sidebar-container"> <!-- #main Starts --> <?php woo_main_before(); ?> <section id="main" class="col-left"> <?php if ( is_home() && is_active_sidebar( 'homepage' ) ) { dynamic_sidebar( 'homepage' ); } else { get_template_part( 'loop', 'index' ); } ?> </section><!-- /#main --> <?php woo_main_after(); ?> <?php get_sidebar(); ?> </div><!-- /#main-sidebar-container --> <?php get_sidebar( 'alt' ); ?> </div><!-- /#content --> <?php woo_content_after(); ?> <?php get_footer(); ?>
post.php:
<article <?php post_class(); ?>> <?php woo_post_inside_before(); ?> <header> <?php the_title( $title_before, $title_after ); ?> </header> <?php woo_post_meta(); ?> <section class="entry"> <?php if ( 'content' == $settings['post_content'] || is_single() ) { the_content( __( 'Leer más →', 'woothemes' ) ); } else { the_excerpt(); } if ( 'content' == $settings['post_content'] || is_singular() ) wp_link_pages( $page_link_args ); ?> </section><!-- /.entry --> <div class="fix"></div> <?php woo_post_inside_after(); ?> </article><!-- /.post --> <?php woo_post_after(); $comm = $settings['comments']; if ( ( 'post' == $comm || 'both' == $comm ) && is_single() ) { comments_template(); } ?>
Regards ??
Thanks. What does your loop-index.php template part look like?
Thanks you. I don’t understand… DO you need the loops php code?
loop-magazine.php (child theme):
<?php /** * Loop - Magazine * * This is the loop logic file for the "Magazine" page template. * * @package WooFramework * @subpackage Template */ global $wp_query, $woo_options, $paged, $page, $post; global $more; $more = 0; remove_action( 'woo_post_inside_before', 'woo_display_post_image', 10 ); // woo_loop_before() is loaded in the main template, to keep the magazine slider out of this file. $args = woo_get_magazine_query_args(); $query = new WP_Query( $args ); if ( $query->have_posts() ) { $count = 0; $column_count_1 = 0; $column_count_2 = 0; ?> <?php while ( $query->have_posts() ) { $query->the_post(); $count++; // Featured Starts if ( isset( $woo_options['woo_magazine_feat_posts'] ) && $count <= $woo_options['woo_magazine_feat_posts'] && ! is_paged() ) { woo_get_template_part( 'content', 'magazine-featured' ); continue; } $column_count_1++; $column_count_2++; ?> <div class="block<?php if ( $column_count_1 > 1 ) { echo esc_attr( ' last' ); $column_count_1 = 0; } ?>"> <?php woo_get_template_part( 'content', 'magazine-grid' ); ?> </div><!--/.block--> <?php if ( $column_count_1 == 0 ) { ?><div class="fix"></div><?php } // End IF Statement } // End WHILE Loop } else { get_template_part( 'content', 'noposts' ); } woo_pagenav( $query ); wp_reset_query(); add_action( 'woo_post_inside_before', 'woo_display_post_image', 10 ); ?>
or loop.php
<?php /** * Loop * * This is the default loop file, containing the looping logic for use in all templates * where a loop is required. * * To override this loop in a particular context (in all archives, for example), create a * duplicate of this file and rename it to <code>loop-archive.php</code>. Make any changes to this * new file and they will be reflected on all your archive screens. * * @package WooFramework * @subpackage Template */ global $more; $more = 0; woo_loop_before(); if (have_posts()) { $count = 0; ?> <div class="fix"></div> <?php while (have_posts()) { the_post(); $count++; woo_get_template_part( 'content', get_post_type() ); } // End WHILE Loop } else { get_template_part( 'content', 'noposts' ); } // End IF Statement woo_loop_after(); woo_pagenav(); ?>
It’s almost impossible to diagnose this without seeing the theme in full. Sorry. Feel free to email me and I’ll take a look this weekend. Done working for today.
Cheers,
PhilipThanks a lot Phillip!!!!! Regards!!!
- The topic ‘Home posts Canvas theme’ is closed to new replies.