Viewing 5 replies - 1 through 5 (of 5 total)
  • Your WordPress installation is in a sub-directory. That means by default home_url or site_url points to root of the WordPress installed folder. If you want to point your logo to some other location, you have to change it in your theme’s header.php file where the ‘href’ attribute is set. You will have to hard code this in your theme.

    [ Signature moderated ]

    Thread Starter Alan

    (@aneehas)

    I cannot find href attribute in my theme header php

    It’s actually an attribute for anchor tag, look for the <a href="<?php echo home_url(); ?>" > <img src="/path/to/logo"></a> try to find the code where logo is being displayed.

    Thread Starter Alan

    (@aneehas)

    <?php
    /**
    * Displays the header section of the theme.
    *
    */
    ?>
    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>

    <?php
    /**
    * travelify_meta hook
    */
    do_action( ‘travelify_meta’ );

    /**
    * travelify_links hook
    *
    * HOOKED_FUNCTION_NAME PRIORITY
    *
    * travelify_add_links 10
    * travelify_favicon 15
    * travelify_webpageicon 20
    *
    */
    do_action( ‘travelify_links’ );

    /**
    * This hook is important for WordPress plugins and other many things
    */
    wp_head();
    ?>

    </head>

    <body <?php body_class(); ?>>
    <?php
    /**
    * travelify_before hook
    */
    do_action( ‘travelify_before’ );
    ?>

    <div class=”wrapper”>
    <?php
    /**
    * travelify_before_header hook
    */
    do_action( ‘travelify_before_header’ );
    ?>
    <header id=”branding” >
    <?php
    /**
    * travelify_header hook
    *
    * HOOKED_FUNCTION_NAME PRIORITY
    *
    * travelify_headerdetails 10
    */
    do_action( ‘travelify_header’ );
    ?>
    </header>
    <?php
    /**
    * travelify_after_header hook
    */
    do_action( ‘travelify_after_header’ );
    ?>

    <?php
    /**
    * travelify_before_main hook
    */
    do_action( ‘travelify_before_main’ );
    ?>
    <div id=”main” class=”container clearfix”>

    Thread Starter Alan

    (@aneehas)

    this is my theme header html code

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How does one change the default destination link url’ is closed to new replies.