Archived topic
Adjust Header
25 replies · Started by John on January 9, 2018
You can learn more about child themes and download our blank child theme here: https://docs.generatepress.com/article/using-child-theme/
Direct download: http://generatepress.com/api/themes/generatepress_child.zip
I couldn't get the "Home" word to be removed.
I added/changed the child theme functions.php to this
<?php
/**
* GeneratePress child theme functions and definitions.
*
* Add your custom PHP in this file.
* Only edit this file if you have direct access to it on your server (to fix errors if they happen).
*/
function generatepress_child_enqueue_scripts() {
if ( is_rtl() ) {
wp_enqueue_style( 'generatepress-rtl', trailingslashit( get_template_directory_uri() ) . 'rtl.css' );
}
}
add_action( 'wp_enqueue_scripts', 'generatepress_child_enqueue_scripts', 100 );
add_filter( 'generate_show_title', 'title_by_johnbraun' );
function title_by_johnbraun()
{
return 'Your new value';
}
What do I do to remove the "Home" on the main page and all the other pages? It's such a waste of valuable real estate at the top.
That title is actually an H1 with microdata which really helps when it comes to search engine rankings.
However, if you'd like to add your own H1 in the text body, try this function instead:
add_filter( 'generate_show_title', '__return_false' );
Ah, then that makes sense why the color of the H1 header I created is the same. Ok, I'll just make the title of the page longer and set now that I know it's an actual H1 header.
That's definitely the best route to take :)
How do I make something with a header at the very top and then a changing picture all the way across the screen like on http://www.icarpetcleaningatlanta.com
You would need a slider plugin.
If you want to add it at the very top of the page then you can insert the slider shortcode the before header hook:
http://demo.generatepress.com/hook-locations/
https://docs.generatepress.com/article/hooks-overview/
Okay, I got a slider to work at http://www.pcssuperior.com But how do I get it to only show up on the home page only? And not on the other pages?
How do I make the header a different address?
Particularly, I'd like to make the mobile header into a clickable phone number.
http://www.okemocarpetcleaning.com
By the header, I mean the graphic at the very top with the logo and phone number.
Would you consider uploading the logo only (without the phone number) as the mobile header logo, then add the phone number in as mobile header content?
https://docs.generatepress.com/article/mobile-header/#adding-html-inside-the-mobile-header
It should look better.
Let me know :)
