- This topic has 27 replies, 4 voices, and was last updated 5 years, 5 months ago by
Leo.
-
AuthorPosts
-
October 19, 2015 at 10:39 am #145701
Anton Samarin
I try to adjust page header position to Inside Contert Area. But it doesnt work. Nothing changes. Why?
October 19, 2015 at 10:59 am #145739Tom
Lead DeveloperLead DeveloperIs 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.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 19, 2015 at 11:28 am #145747Anton Samarin
it is Blog Page Header: http://7nov.ru/
October 19, 2015 at 12:58 pm #145789Tom
Lead DeveloperLead DeveloperAh, so you’re wanting the page header to show up next to the sidebar instead of above it?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 19, 2015 at 1:07 pm #145796Anton Samarin
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?
October 19, 2015 at 1:13 pm #145799Tom
Lead DeveloperLead DeveloperGive 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/
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 19, 2015 at 1:33 pm #145820Anton Samarin
I add this code to functions.php and site crashes. Or I need to add it to other file?
October 19, 2015 at 1:37 pm #145822Tom
Lead DeveloperLead Developerfunctions.php should work.
Make sure there’s this at the top:
<?php
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 19, 2015 at 1:43 pm #145827Anton Samarin
It worked, but stuck to entery below
October 19, 2015 at 1:49 pm #145832Tom
Lead DeveloperLead DeveloperTry this CSS:
.blog .page-header-content { margin-bottom: 20px; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 19, 2015 at 1:53 pm #145837Anton Samarin
It helped below, but upper border is lower then sidebar upper border
October 19, 2015 at 1:55 pm #145838Tom
Lead DeveloperLead DeveloperI adjusted the PHP above to make it so the area isn’t a part of masonry: https://generatepress.com/forums/topic/page-header-position-doesnt-change/#post-145799
For the spacing, adjust your CSS to this:
.blog .page-header-content { margin-bottom: 20px; margin-top: 0; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 19, 2015 at 2:02 pm #145842Anton Samarin
Good! upper and lower borders are OK. but now there is a problem with right border 🙂 http://7nov.ru
October 19, 2015 at 2:06 pm #145843Tom
Lead DeveloperLead DeveloperHere we go:
.blog .page-header-content { margin-bottom: 20px; margin-right: 20px; margin-top: 0; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 19, 2015 at 2:08 pm #145844Anton Samarin
Super! Tom, thank you a lot!
-
AuthorPosts
- You must be logged in to reply to this topic.