Site logo

Archived topic

Adjust Header

25 replies · Started by John on January 9, 2018

Viewing posts 16–26 of 26

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 :)

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.

This archived topic is closed to new replies.