Home Forums Mint Theme Discussion & Support Change Header Image Link

This topic is: not a support question

This topic contains 5 replies, has 2 voices, and was last updated by  themeweaver 4 years, 7 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2941

    Dave Price
    Member
    Post count: 5

    Hi-

    How do I change the header image url link for this theme? When the logo/header image is clicked on, it currently goes to http://www.fitmogul.com. However, I would like it to be redirected to http://www.fitmogul.com/activity-2/. I have looked in the header.php to try and redirect but have had no luck. Below is the header.php file info. Help!


    <html id="ie6" >


    <html >
    <!–

    <meta charset="” />


    <script src="/js/css3-mediaqueries.js”>
    <script src="/js/html5.js”>

    <link rel="pingback" href="” />

    <body >


    #2944

    themeweaver
    Keymaster
    Post count: 730

    It links to you home url.

    Code for this is defined in base/content.php.

    Don’t edit this file though. You can redefine the functions in this file in a child theme.

    see function livingos_header_logo()

    Or better is to use the filter livingos_header_logo also defined in this function.

    #2949

    Dave Price
    Member
    Post count: 5

    Ok so this is the code in the content.php file under function livingos_header_logo(). I have never created a child theme before. What do you mean by using the filter livingos_header_logo? Couldn’t I just change the href=”‘.home_url(‘/’).'” to my desired url? I am a beginner, patience is appreciated!

    //header: logo
    if ( !function_exists(‘livingos_header_logo’) ) {
    function livingos_header_logo() {
    //get theme options
    $options = get_option( ‘livingos_theme_options’ );
    $content = “”;
    //logo
    if ( $options[‘logos’] != “none” && isset( $options[‘logos’] ) ) {
    $content .= “\n\t\t”;
    $content .= ”;
    $content .= “\n\t\t\t”;
    $content .= ‘‘;
    $content .= “\n\t\t”;
    $content .= ‘‘;
    $content .= “\n”;
    } elseif ( $options[‘custom_logo’] != “” ) {
    $content .= “\n\t\t”;
    $content .= ”;
    $content .= “\n\t\t\t”;
    $content .= ‘‘;
    $content .= “\n\t\t”;
    $content .= ‘‘;
    $content .= “\n”;
    }

    echo apply_filters( ‘livingos_header_logo’, $content );

    #2950

    themeweaver
    Keymaster
    Post count: 730

    You could just change the link. BUT when you update the theme in the future you will loose your changes.

    Maybe if I understood what you are trying to achieve there may be a better way than changing anything in the theme.

    If for example you are trying to use an alternative home page, You can change this is the WordPress settings.

    #2952

    Dave Price
    Member
    Post count: 5

    I would like to keep the home page of http://www.mysite.com, however I would like the header image/logo to go to a different link (example http://www.mysite.com/activity) when clicked on rather than the default http://www.mysite.com. I can’t seem to find an answer for this anywhere.

    #2953

    themeweaver
    Keymaster
    Post count: 730

    The only way is to change the function (or better redefine the function) explained above.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.