[Support request] Adjust Header

Home Forums Support [Support request] Adjust Header

Home Forums Support Adjust Header

Viewing 11 posts - 16 through 26 (of 26 total)
  • Author
    Posts
  • #468761
    Tom
    Lead Developer
    Lead Developer

    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

    #471551
    John

    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.

    #471552
    Tom
    Lead Developer
    Lead Developer

    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' );

    #471672
    John

    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.

    #471793
    Tom
    Lead Developer
    Lead Developer

    That’s definitely the best route to take ๐Ÿ™‚

    #475156
    John

    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

    #475339
    Leo
    Staff
    Customer Support

    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/

    #478302
    John

    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?

    #478342
    Leo
    Staff
    Customer Support
    #569896
    John

    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.

    #570109
    Leo
    Staff
    Customer Support

    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 ๐Ÿ™‚

Viewing 11 posts - 16 through 26 (of 26 total)
  • You must be logged in to reply to this topic.