cberg
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Blocomo] Post Excerpt DisplayHi Katrina,
sorry, I was a bit in trouble this morning :/
This code should work:
<?php if ( is_search() || is_home() || is_category() ) : // Only display Excerpts for Search, Home and Category ?>
Sorry again and kind regards,
ChristopherForum: Themes and Templates
In reply to: [Blocomo] Post Excerpt DisplayHi Katrina,
please do the following.
Log-in to your backend and navigate to Appearence -> Editor.
Then select the Twenty Twelve Theme (right-top).
Open the content.php of the Twenty Twelve Theme and search for the following code:
<div class="entry-summary"> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> </div><!-- .entry-summary -->
Replace this with the follwing code:
<div class="entry-summary"> <?php the_excerpt(); ?> </div><!-- .entry-summary -->
Please see the function reference, too:
the_excerptBtw: If you haven’t, you should create a child-theme where you do these changes because updates of the Twenty Twelve Theme can overwrite your changes.
-> Child Themes
I hope this was what you were looking for ??
Kind regards,
ChristopherForum: Themes and Templates
In reply to: [Blocomo] Blocomo Theme Header Below NavigationYou’re welcome ??
Forum: Themes and Templates
In reply to: [Blocomo] Blocomo Theme Header Below NavigationHi Katrina,
please do the following to place the header image above the navigation:
Log-in to your backend and navigate to Appearence -> Editor.
Then select the Twenty Twelve Theme (right-top).
Open the header.php of the Twenty Twelve Theme and search for the following code:
<?php $header_image = get_header_image(); if ( ! empty( $header_image ) ) : ?> <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /></a> <?php endif; ?> </header><!-- #masthead -->
Now put the found code above after the following code:
<header id="masthead" class="site-header" role="banner"> <hgroup> <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2> </hgroup>
Then the new code should look like this and the header image should appear under the description and above the navigation:
<hgroup> <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2> </hgroup> <?php $header_image = get_header_image(); if ( ! empty( $header_image ) ) : ?> <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /></a> <?php endif; ?> </header><!-- #masthead -->
Kind regards,
ChristopherForum: Themes and Templates
In reply to: Homepage SEOI think it depends on where the content originally was and where the content will be in the new theme (and if it has the same structure like before). But I think your question is hard to answer without knowing the site.