Give Blogpage same layout as rest of site & some tweaks

Hello guys,

is there a way to give the blogpage the same layout as the rest of the site I have created at
www.possehl-pmb.de ?

Specifically I would like to:

  • Place a header-image on top of page like on the other content pages
  • Have the layout be full width
  • Have the “Read more” say “Mehr”
  • Use the same Headline sizes as on other pages (h1 looks like h4)

Thanks a lot for taking a look and helping out…

Best

Lutz

Hi Lutz,

Please add the following code under functions.php file locates in your child theme:

add_action( 'x_before_view_global__index', 'print_custom_header' );
function print_custom_header(){
	if( is_home() ){
		?>
		<div id="blog_section" class="x-section" style="margin: 0px;padding: 45px 0px; background-color: transparent;">
			<div class="x-container max width" style="margin: 0px auto;padding: 0px;">
				<div class="x-column x-sm x-1-1" style="padding: 0px;">
					<img src="https://placeholdit.imgix.net/~text?w=1200&h=400" />
				</div>
			</div>
		</div>
		<?php
	}
}
function x_excerpt_string( $more ) { 
	$stack = x_get_stack();

	if ( $stack == 'integrity' ) {
	  return ' ... <div><a href="' . get_permalink() . '" class="more-link">' . __( 'Mehr', '__x__' ) . '</a></div>';
	} else if ( $stack == 'renew' ) {
	  return ' ... <a href="' . get_permalink() . '" class="more-link">' . __( 'Mehr', '__x__' ) . '</a>';
	} else if ( $stack == 'icon' ) {
	  return ' ...';
	} else if ( $stack == 'ethos' ) {
	  return ' ... <a href="' . get_permalink() . '" class="more-link">' . __( 'Mehr', '__x__' ) . '</a>';
	}
}
add_filter( 'excerpt_more', 'x_excerpt_string' );

After that add the following CSS under Customizer > Custom > Global CSS:

.blog .entry-title a {
    font-size: inherit;
}

Hope it helps :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.