Forum Replies Created

Viewing 15 replies - 1 through 15 (of 105 total)
  • hi,

    in functions.php

    /* Back To Top */
    
        add_action( 'wp_footer', 'back_to_top' );
        function back_to_top() {
        echo '<a id="totop" href="#">Back to Top</a>';
        }
    
        add_action( 'wp_head', 'back_to_top_style' );
        function back_to_top_style() {
        echo '<style type="text/css">
        #totop {
        position: fixed;
        right: 30px;
        bottom: 30px;
        display: none;
        outline: none;
        }
        </style>';
        }
    
        add_action( 'wp_footer', 'back_to_top_script' );
        function back_to_top_script() {
        echo '<script type="text/javascript">
        jQuery(document).ready(function($){
        $(window).scroll(function () {
        if ( $(this).scrollTop() > 500 )
        $("#totop").fadeIn();
        else
        $("#totop").fadeOut();
        });
    
        $("#totop").click(function () {
        $("body,html").animate({ scrollTop: 0 }, 800 );
        return false;
        });
        });
        </script>';
        }

    Hello,
    the theme was a concern, through Appearance -> Header, you download the image, cropping, etc. .. WordPresss message, website updated and there still image default theme, except through the CSS can change the image, a bug theme, where is the author?

    hello,

    I would just delete the single.php, date, author and comments, but certainly not the home page or elsewhere. thank you

    lupi73

    (@lupi73)

    hi,

    a child theme
    after then inside home.php

    <?php
    /**
     * The Home Page template file.
     *
     * @since Leaf 1.0
     */
    
    global $options;
    $options = get_option('leaf_theme_options');
    $no_duplicates = array(); ?>
    <?php get_header(); ?>
    
    	<div id="primary" class="site-content <?php echo leaf_grid_width( 'content' ); ?> columns">
    		<div id="content" role="main">
    			<article class="post-home">
    
    				<?php /********* Slider Section. *********/ ?>
    
    				<div id="iview">
    
    					<?php
    						if ( ! isset( $options['leaf_slider_cat']) || $options['leaf_slider_cat'] == -1 ) {
    							$args = ( array( 'posts_per_page' => 5, 'post__not_in' => get_option( 'sticky_posts' ) ) );
    						} else {
    							$args = ( array( 'posts_per_page' => 5, 'category__in' => $options['leaf_slider_cat'], 'post__not_in' => get_option( 'sticky_posts' ) ) );
    						}
    					?>  
    
    					<?php $loop = new WP_Query( $args ); ?>
    
    					<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
    
    						<?php $no_duplicates[] = get_the_ID(); ?>
    
    						<a href="<?php the_permalink(); ?>" data-iview:image="<?php echo leaf_get_post_image( null,null,true,null, 'slider' ); ?>">
    							<span class="iview-caption caption3" data-x="15" data-y="212" data-transition="expandright"><h2><?php the_title(); ?></h2></span>
    							<span class="iview-caption caption1" data-x="15" data-y="258" data-transition="expandleft"><?php echo '<p>' . wp_trim_words( get_the_excerpt(), 35, null ) . '</p>'; ?></span>
    						</a>
    
    					<?php endwhile; ?>
    
    				</div><!-- #iview -->
    
    				<?php /********* Featured Section. *********/ ?>
    
    				<?php $loop = new WP_Query( array( 'posts_per_page' => 1,'post__in'  => get_option( 'sticky_posts' ),'post__not_in' => $no_duplicates, 'ignore_sticky_posts' => 1 ) ); ?>
    
    				<?php if ( $loop->have_posts() ) : ?>
    
    					<!-- Begin featured. -->
    
    						<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
    							<?php if (!is_sticky()) continue; ?>
    
    							<?php $no_duplicates[] = get_the_ID(); ?>
    
    							<h3 class="divider-title"><span><?php _e( 'Featured', 'leaf'  ); ?></span></h3>
    
    							<div class="home-featured row">
    
    								<div class="six columns">
    
    									<a href="<?php the_permalink(); ?>">
    										<img src="<?php echo leaf_get_post_image( '','',true,'', 'medium' ); ?>" alt="<?php the_title(); ?>" class="attachment-post-thumbnail wp-post-image">
    									</a>
    
    								</div><!-- .six .columns -->
    
    								<div class="six columns">
    
    									<h2 class="entry-title">
    										<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'leaf' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
    									</h2>
    
    									<div class="entry-summary">
    										<?php echo '<p>' . wp_trim_words( get_the_excerpt(), 45, null ) . '</p>'; ?>
    									</div><!-- .entry-summary -->
    
    									<p class="read-more-link"><a href="<?php the_permalink(); ?>"><?php _e( 'Full Article', 'leaf'  ); ?> &rarr;</a></p>
    
    								</div><!-- .six .columns -->
    
    							</div><!-- .home-featured .row -->
    
    						<?php endwhile; ?>
    
    					<!-- End featured. -->
    
    				<?php endif; ?>
    
    				<?php /********* Articles Section. *********/ ?>
    
    				<?php $articles = (!empty($options['leaf_more_articles_number'])) ? ($options['leaf_more_articles_number']) : 2; ?>
    
    				<?php $loop = new WP_Query( array( 'posts_per_page' => $articles, 'post__not_in' => $no_duplicates, 'orderby' => 'date', 'order' => 'DESC' ) ); ?>
    
    				<?php if ( $loop->have_posts() ) : ?>
    
    					<!-- Begin articles. -->
    
    					<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
    
    						<div class="home-articles horizontal-divider row">
    
    							<div class="four columns">
    
    								<a href="<?php the_permalink(); ?>">
    									<img src="<?php echo leaf_get_post_image( null,null,true,null, 'medium' ); ?>" alt="<?php the_title(); ?>" class="attachment-post-thumbnail wp-post-image">
    								</a>
    
    							</div><!-- .four .columns -->
    
    							<div class="eight columns">
    
    								<h2 class="entry-title">
    									<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a>
    								</h2>
    
    								<div class="entry-summary">
    									<?php echo '<p>' . wp_trim_words( get_the_excerpt(), 45, null ) . '</p>';?>
    								</div><!-- .entry-summary -->
    
    								<p class="read-more-link"><a href="<?php the_permalink(); ?>"><?php _e( 'Full Article', 'leaf'  ); ?> &rarr;</a></p>
    
    							</div><!-- .eight .columns -->
    
    						</div><!-- .home-articles .horizontal-divider .row -->
    
    					<?php endwhile; ?>
    
    					<!-- End articles. -->
    
    				<?php endif; ?>
    
    			</article><!-- .post-home -->
    		</div><!-- #content -->
    	</div><!-- #primary .site-content .<?php echo leaf_grid_width( 'content' ); ?> .columns-->
    
    <?php // If the home sidebar has widgets display it.
    if ( is_active_sidebar( 'sidebar-home' ) ) :
    	get_sidebar( 'home' );
    else:
    	get_sidebar();
    endif;
    ?>
    <?php get_footer(); ?>

    in the child theme.

    lupi73

    (@lupi73)

    hi,
    found he missed the “bookmarks” folder in wp-content/uploads with all its contents.

    lupi73

    (@lupi73)

    hi,
    I disabled all plugins, set the theme twenty ten and I have the same concern as kiwinho, thank you

    hi,
    Have you indicated the image size percentage in CSS?

    hi,
    What you want to do?
    Changing images of social networks?

    hello,
    it is preferable to use a child theme.
    firebug you know?
    https://addons.mozilla.org/fr/firefox/addon/firebug/

    hi,
    language files must be either the root or child theme library / languages ​​the child theme

    I do not think we could modify js, should save it on the child theme under another name and put the code to call in header.php

    hi,

    style.css

    .featured-text {
        display: none;
        padding: none;
    }

    Hi,

    I confess that I am accustomed to conventional coded WordPress themes without hook, then I’m stuck, I do not see how.
    just add the code of the plugin wp-postviews, except in the parent theme, I do not see how this modfication for the child theme.
    A beautiful theme but for coders.

    sorry but the theme is more complicated than I thought it, I hang on the hooks, I can not help you.

Viewing 15 replies - 1 through 15 (of 105 total)