Visualizzazione dei risultati da 1 a 7 su 7

Hybrid View

  1. #1
    Utente di HTML.it
    Registrato dal
    Apr 2014
    Messaggi
    69
    scusate per il post precedente (moderatori potete cancellarlo).
    vi aggiorno sulla mia richiesta, sperando che qualcuno mi dia una mano: ho trovato nel file front-page.php la sezione che vorrei "nascondere" ovvero la parte del blog,cioè quella centrale che inizia con "latest posts", più o meno acentro pagina:
    codice:
        <!-- *** Recent Blogs Starts *** -->
        <div class="blog-wrapper" id="section3">
            <div class="container">
                <div class="blog-container">
                    <div class="row">
                        <div class="recent-blog-header">
                            <p class="saperator"><img src="<?php echo get_template_directory_uri(); ?>/images/recent-blog-seperator-icon.png"></p>
                            <?php if (startpoint_get_option('startpoint_home_blog_heading') != '') { ?>
                                <h1 class="rbh"><?php echo startpoint_get_option('startpoint_home_blog_heading'); ?></h1>
                            <?php } else { ?>
                                <h1 class="rbh"><?php _e('Latest posts', 'startpoint'); ?></h1>
                            <?php } ?>
                            <?php if (startpoint_get_option('startpoint_home_blog_desc') != '') { ?>
                                <p class="rbh"><?php echo startpoint_get_option('startpoint_home_blog_desc'); ?></p>
                                <?php
                            } else {
                                
                            }
                            ?>
                        </div>
                    </div>
                    <div class="row">
                        <!-- *** Blog *** -->
                        <?php
                        $limit = get_option('posts_per_page');
                        $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
                        $wp_query->query('showposts=' . $limit . '&paged=' . $paged);
                        $wp_query->is_archive = true;
                        $wp_query->is_home = false;
                        ?>
                        <?php
                        query_posts('showposts=' . $limit . '');
                        if (have_posts()) : while (have_posts()) : the_post();
                                ?>
                                <div class="col-md-4 col-sm-4 col-xs-6">
                                    <div class="recent-posts-container">
                                        <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                                            <div class="animated left-to-right">
                                                <?php if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail())) { ?>
                                                    <?php
                                                    startpoint_get_thumbnail(326, 279);
                                                    ?>
                                                <?php } else { ?>
                                                    <?php
                                                    startpoint_get_image(326, 279);
                                                    ?> 
                                                    <?php
                                                }
                                                ?></div>
                                            <h3 class="animated bottom-to-top"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
                                            <?php the_excerpt(); ?>
                                            <span>
                                                <p class="rbh-post-meta"><?php
                                                    $archive_year = get_the_time('Y');
                                                    $archive_month = get_the_time('m');
                                                    $archive_day = get_the_time('d');
                                                    ?>
                                                    <a href="<?php
                                                    echo get_day_link($archive_year, $archive_month, $archive_day);
                                                    ?>">Posted on : <?php echo get_the_time('m. d. Y') ?></a></p>
                                                <a href="<?php the_permalink() ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/readmore-icon.png" alt="" class="rbh-readmore"></a>
                                            </span>
                                        </div>
                                    </div>
                                </div>
                                <?php
                            endwhile;
                        else:
                            ?>
                            <div>
                                <p>
                                    <?php _e('Sorry no post matched your criteria', 'startpoint'); ?>
                                </p>
                            </div>
                        <?php endif; ?>
                        <!-- *** Recent Blog loop Ends *** -->
    
                    </div>
                </div>
            </div>
        </div>
        <!-- *** Recent Blogs Ends *** -->
        <div class="clearfix"></div>
    
        <!-- *** Gallery starts *** -->
    come faccio a "commentarla" cioè nasconderla? grazie

  2. #2
    Utente di HTML.it L'avatar di Prill
    Registrato dal
    Oct 2006
    Messaggi
    2,947
    Quote Originariamente inviata da ludo13 Visualizza il messaggio
    come faccio a "commentarla" cioè nasconderla? grazie
    la racchiudi fra <!-- e -->

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.