- This topic has 26 replies, 5 voices, and was last updated 9 years, 3 months ago by Tom.
-
AuthorPosts
-
April 10, 2015 at 1:35 am #97190elguavas
cool on all counts! π
May 12, 2015 at 3:09 am #107349Michalis there any chance for update on sortable header items, as youβve Tom in your first reply above? sorry for pushing π
May 12, 2015 at 10:44 pm #107610TomLead DeveloperLead DeveloperHave a couple things to get released first, but this is high on my list π
May 15, 2015 at 10:09 am #108123TomLead DeveloperLead DeveloperAs of 1.2.9.7, we’ll be able to add a function to our child themes and adjust the order of the header items.
For example: https://gist.github.com/generatepress/d58dd082dbd741943aee
You would pop that function into your child theme, and then rearrange the items to your liking.
Again, this won’t work until 1.2.9.7 is live.
May 31, 2015 at 9:52 am #111620teloyrurHi Tom! π
Firstly, I’m very happy with my purchase of GP Premium, as it seems to do everything that I need, with the possibility of adding a few other things that I’d like..
I tried the suggestions above but I couldn’t get it to work.
Now that 1.2.9.8 is out I wonder if you’d be kind enough to detail how I add this:
https://gist.github.com/generatepress/d58dd082dbd741943aee
and how I can the use it to move the logo position.
Thanks in anticipation.
May 31, 2015 at 10:12 am #111622TomLead DeveloperLead DeveloperAbsolutely!
Add the entire function to your child theme’s functions.php file, or another method shown at the link below.
How to add PHP: http://generatepress.com/knowledgebase/adding-php-functions/
You’ll see the function is made up of three areas:
// Header widget if ( is_active_sidebar('header') ) : ?> <div class="header-widget"> <?php dynamic_sidebar( 'header' ); ?> </div> <?php endif;
// Site title and tagline if ( empty( $generate_settings['hide_title'] ) || empty( $generate_settings['hide_tagline'] ) ) : ?> <div class="site-branding"> <?php if ( empty( $generate_settings['hide_title'] ) ) : ?> <p class="main-title" itemprop="headline"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p> <?php endif; if ( empty( $generate_settings['hide_tagline'] ) ) : ?> <p class="site-description"><?php bloginfo( 'description' ); ?></p> <?php endif; ?> </div> <?php endif;
// Site logo if ( !empty( $generate_settings['logo'] ) ) : ?> <div class="site-logo"> <a href="<?php echo apply_filters( 'generate_logo_href' , esc_url( home_url( '/' ) ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img class="header-image" src="<?php echo $generate_settings['logo']; ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" /></a> </div> <?php endif;
Simple re-arrange these blocks (keeping them intact, as shown above), and you’re good to go!
May 31, 2015 at 11:13 am #111645teloyrurThanks Tom!
Do I just copy and paste it after this:-
<?php
/**
* Generate child theme functions and definitions
*
* @package Generate
*/which is the only text showing when I select the php option in “Editor”?
May 31, 2015 at 11:14 am #111646TomLead DeveloperLead DeveloperYou got it π
Be sure to paste the entire function: https://gist.github.com/generatepress/d58dd082dbd741943aee
Then re-arrange as needed.
May 31, 2015 at 11:24 am #111647teloyrurThat’s brilliant, I’ve managed to move the logo above the site title and tagline without crashing the site but I’d like it positioned to the left of the site title and tagline.
Sorry for the additional workload Tom.
May 31, 2015 at 11:51 pm #111705TomLead DeveloperLead DeveloperThis CSS from earlier in the thread should do it: http://generatepress.com/forums/topic/position-of-the-header-logo/#post-94233
June 1, 2015 at 3:56 am #111740teloyrurThanks again Tom!
It works perfectly.
Very much appreciated!
June 1, 2015 at 8:55 am #111779TomLead DeveloperLead DeveloperAwesome! Happy to help π
-
AuthorPosts
- You must be logged in to reply to this topic.