Forums

[resolved] blog home - change text in tab (7 posts)

  1. delmarsurf
    Member
    Posted 5 years ago #

    I have searched the forum but have been unable to find the answer to this simple question.

    I want to change the default text in the main blog from "blog home" to something else. This function is done thru the admin panel for every other page, but I can not find it for the main page.

    I am using the WP-Andreas01 theme if that makes a diff.

    Site: http://www.netrafic.com/housesittingservice/

    Thanks in advance

  2. Kafkaesqui
    Moderator
    Posted 5 years ago #

    "I am using the WP-Andreas01 theme if that makes a diff."

    For this sort of thing it almost *always* makes a difference to know the theme.

    I don't know well the version of Andreas01 you're using (1.2), but most likely the text value for the home page link is found in that theme's functions.php template. Look for (I believe) the function widget_andreas01_pagenav().

  3. delmarsurf
    Member
    Posted 5 years ago #

    Thank you for the response!

    You are correct about the location (functions.php) and the widget file name - widget_andreas01_pagenav()

    I have searched the forum for "modify widget" and am unable to discover the answer.

    I thought there was supposed to be a widget folder in wp_content > plugins but there is not one.

    Would you please point me in the right direction?

  4. Kafkaesqui
    Moderator
    Posted 5 years ago #

    The right direction for what?

    You want to change the link text used for the 'blog home' link in the Andreas01 theme. I noted where it's most likely to be found, which is in the function widget_andreas01_pagenav(). That function should be found in the theme's functions.php template. You would need to edit the theme's functions.php to make the change you want.

  5. veltis
    Member
    Posted 5 years ago #

    Hi,

    I've got the same problem...

    I'm VERY new to php, am using andreas09, found three instances of "home" in the header.php file, (none in the functions.php file) but am not sure which ones to change, if at all.

    Home means "mold" in Finnish, so changing this is pretty important to me.

    Any help would be vastly appreciated.

  6. twelliott
    Member
    Posted 4 years ago #

    It's really pretty easy with this theme. Just look at the function.php for the following section and replace "Home" with whatever you want (I put in "Blog" here):

    // WP-Andreas01 Page Navigation
    function widget_andreas01_pagenav() {
    ?>
    <h2 class="hide">Site menu:</h2>
    <ul class="page">
    <?php if (is_page()) { $highlight = "page_item"; } else {$highlight = "page_item current_page_item"; } ?>
    <li class="<?php echo $highlight; ?>">">Blog
    <?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>

    <?php
    }
    if ( function_exists('register_sidebar_widget') )
    register_sidebar_widget(__('Pages'), 'widget_andreas01_pagenav');

    It will be always the first choice which you might not want if you are using a static homepage for "Home"

  7. RMIGHTY1
    Member
    Posted 4 years ago #

    Thank you for all your help here. I changed my default "Blog" tab to "Home" in the header.php of my BlueMemories theme. It was at the very bottom in a nav div. Copy below:

    <div class="nav"> <ul> <li class="<?php if ( is_home()) { ?>current_page_item<?php } else { ?>page_item<?php } ?>"><a href="<?php echo get_settings('home'); ?>">Home</a></li> <?php wp_list_pages("title_li=&depth=1&sort_column=menu_order");?></ul> </div>

    The "Home" that was changed from "Blog" to "Home" is the third one listed in the code snippet above right before the end hyperlink </a> tab.

    Hope this helps someone else!!!

Topic Closed

This topic has been closed to new replies.

About this Topic