Support » Plugin: Blox Lite - Content Blocks for Genesis » Custom header issue

  • Resolved MarshaS

    (@marshas)


    Using Blox Lite to add custom headers with the Magazine Pro theme. Enjoying the plugin so far. A couple issues:

    -I’m positioning custom headers on selected pages using the genesis_header hook. However, the global header with the logo (set in the customizer) still appears above it, here: https://adventurebrevard.com/header-test/

    -I need to have the global header with the logo on the homepage and other non-custom pages. Such as here: https://adventurebrevard.com/ In addition, I’m using GeoDirectory, which uses the sitewide header for the pages it creates.

    What’s the best way to accommodate both types of headers?

    I’m not a coder, unfortunately. But I can copy and paste with directions. 😉

    Please let me know if what I want to do is possible.
    Thanks for your time!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Nick Diego

    (@ndiego)

    Hi MarshaS,

    Blox adds content, it does not replace or remove content. That is why you are seeing both headers when you add the custom one created via Blox. To remove the default header, you need to add the following code to your functions.php file:

    remove_action( 'genesis_header', 'genesis_header_markup_open', 5 );
    remove_action( 'genesis_header', 'genesis_do_header' );
    remove_action( 'genesis_header', 'genesis_header_markup_close', 15 );

    This code, however, will remove the default header from all pages. To target specific pages, you can actually use Blox for this.

    1. Create a new global block with the raw content type. Copy and past the above code into the box, wrap with <?php and ?> and enable PHP code in the checkboxes below the text box.
    2. On the Position tab, set the position on page to genesis_before.
    3. Then on the Location tab select the pages you want to hide the default footer on.
    4. Finally update the block and you should be good to go.

    Let me know if you run into any issues.

    Best,
    Nick

    Hi Nick,

    Thanks so much for this!! You rock!

    Worked like a charm!

    Thanks!
    Marsha

    Plugin Author Nick Diego

    (@ndiego)

    Great, I am glad it worked.

    Nick

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom header issue’ is closed to new replies.