WordPress.org

Ready to get started?Download WordPress

Forums

How do I make my header a back button? (8 posts)

  1. Michelle Villemaire
    Member
    Posted 1 year ago #

    My theme is Codium Extend. Does anyone know how to make my header a back button to the main page? I am a beginner, so please dumb it way down. Thank you!

  2. DJDoubleXL189
    Member
    Posted 1 year ago #

    What's your URL?

  3. Michelle Villemaire
    Member
    Posted 1 year ago #

  4. alchymyth
    Forum Moderator
    Posted 1 year ago #

    the site title is already a link to the home page;

    can you define in more detail what you mean with 'header'?

  5. Michelle Villemaire
    Member
    Posted 1 year ago #

    I would like to make the header (in which I've placed a temporary Home made mimi logo) a back button from other pages. If a reader is reading a post and they want to go back to the main page to find something else to read, they can't do that.

  6. Michelle Villemaire
    Member
    Posted 1 year ago #

    Ideally, I'd like to have a "Home" button on the menu, too, Next to "About Mimi" and "contact." But it seems like those things on the menu can only be static pages?

  7. alchymyth
    Forum Moderator
    Posted 1 year ago #

    I'd like to have a "Home" button on the menu

    there are two possibilities:

    1 - the theme is prepared to use a custom menu; activate and create one: http://codex.wordpress.org/Appearance_Menus_Screen

    2 - edit functions.php and add (similar code is in Twenty Eleven, untested in Codium Extend):

    /**
     * Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link.
     */
    function codiumextend_page_menu_args( $args ) {
    	if ( ! isset( $args['show_home'] ) )
    		$args['show_home'] = true;
    	return $args;
    }
    add_filter( 'wp_page_menu_args', 'codiumextend_page_menu_args' );
  8. Michelle Villemaire
    Member
    Posted 1 year ago #

    Thank you. I did the custom menu. As far as the header goes, is there a way to make it a home button as well?

Topic Closed

This topic has been closed to new replies.

About this Topic