Forums » Remove from Header

RSS feed for this topic

Info

  1. Despite NOT being set to featured or public, the <Browse Exhibits> link appears in my header and footer and I would like to suppress because I do not like how the exhibit builder defaults to:

    http://library.gc.cuny.edu/34th_st/exhibits

    and prefer my simple html page:
    http://library.gc.cuny.edu/34th_st/exhibit

    How can I suppress <Browse Exhibits> from Header and Footer?

    Also, not in header|footer code:

    <?php echo public_nav_main(array('Library Home'=>uri('../'), 'Collection Home' => uri(''), 'Browse Items' => uri('items'), 'Map' => uri('../34th_st/map') ));?>

  2. You can add a filter that will change the output of your navigation bar.

    add_filter('public_navigation_main', 'my_theme_public_navigation_main');
    
    function my_theme_public_navigation_main($nav)
    {
        unset($nav['Browse Exhibits']);
        return $nav;
    }

    Also, remember that an Omeka theme can override the way a plugin is displayed. Adding a file in your theme at exhibit_builder/exhibits/browse.php will allow you to completely change the page at the normal "Browse Exhibits" URL.

  3. Thank you, John.

    Where do I add this 'filter'?

    In a specific file? Or create a file and place:
    exhibit_builder/exhibits/browse.php
    or
    theme/common

    ?

  4. I'm sorry, I meant to include that information in my last post.

    This should go in your theme's custom.php file.

  5. Super helpful. Thank you.

Topic Closed

This topic has been closed to new replies.