Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter lobsangbcn

    (@lobsangbcn)

    Sorry! The site is online now πŸ˜€

    Thread Starter lobsangbcn

    (@lobsangbcn)

    any idea?

    Thread Starter lobsangbcn

    (@lobsangbcn)

    Thread Starter lobsangbcn

    (@lobsangbcn)

    The grid shows the default image: default_image.png

    Thread Starter lobsangbcn

    (@lobsangbcn)

    Thanks a lot Phillip!!!!! Regards!!!

    Thread Starter lobsangbcn

    (@lobsangbcn)

    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();
    ?>
    Thread Starter lobsangbcn

    (@lobsangbcn)

    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 &rarr;', '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 πŸ™‚

    Thread Starter lobsangbcn

    (@lobsangbcn)

    help please!!! regards!!!

    Thread Starter lobsangbcn

    (@lobsangbcn)

    Hi Philip,

    Subtitles are not displayed on the home page (http://www.viajarporlibre.net ) but are shown in single posts or results page.

    Cheers

    Jordi

    Thread Starter lobsangbcn

    (@lobsangbcn)

    I don’t know, i’m not an expert developer… add a line on code page is possible?

    Thank you

    Jordi

Viewing 10 replies - 1 through 10 (of 10 total)