Site logo

Archived topic

page header position doesnt change

27 replies · Started by Anton Samarin on October 19, 2015

Viewing posts 1–15 of 28

I try to adjust page header position to Inside Contert Area. But it doesnt work. Nothing changes. Why?

position

Is that a blog post or a page? Or is it the blog?

The first option there is for pages, the second one is for single posts.

Ah, so you're wanting the page header to show up next to the sidebar instead of above it?

Yes, how can I achieve this? I need to place slider to be here constantly nest to the sidebar. May be there is another way?

Give this function a try:

add_action( 'wp','generate_move_blog_page_header' );
function generate_move_blog_page_header()
{
	if ( is_home() ) :
		remove_action('generate_after_header','generate_page_header', 10);
		add_action('generate_before_main_content','generate_page_header', 0);
	endif;
}

Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/

I add this code to functions.php and site crashes. Or I need to add it to other file?

functions.php should work.

Make sure there's this at the top: <?php

It worked, but stuck to entery below

Try this CSS:

.blog .page-header-content {
    margin-bottom: 20px;
}

It helped below, but upper border is lower then sidebar upper border

Good! upper and lower borders are OK. but now there is a problem with right border :) http://7nov.ru

Here we go:

.blog .page-header-content {
    margin-bottom: 20px;
    margin-right: 20px;
    margin-top: 0;
}

Super! Tom, thank you a lot!

This archived topic is closed to new replies.