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

    I created a one pager with no menu. How can i add text to the header. Aligned right of the logo.

    #133862

    Also, How do I enlarge the logo on the mobile/responsive version?

    Thanks

    Love this theme!

    Byron

    #133863

    Hi,

    What type of header do you have? You can edit header.php, find this code:

    echo avia_logo(AVIA_BASE_URL.'images/layout/logo.png');

    Then add something like this below:

    echo '<div class"right-header-text">YOUR TEXT HERE</div>';

    Regards,

    Ismael

    #133864

    Ismael

    I’m using the Small Non-fixed header. 1 page landing page. No menu. I centered the logo and wanted to put the some text in the header.

    Also, How do I enlarge the logo on the mobile/responsive version?

    Thanks!

    #133865

    Hi,

    You can add text by adding the following to the end of your functions.php file

    add_action( 'ava_main_header', 'just_some_text_34342', 10);

    function just_some_text_34342()
    {
    echo '<div class="some-class-i-made-up">These are the words to appear in the header!</div>' ;

    }

    You can replace the name of class and message, and then add css appropriate for the class and then place it in /css/custom.css file

    ======================================

    ======================================

    To change logo size, please open up /js/avia.js and look for line 835 and 840. Now you will need to change *only one of them*, and i dont remember which, so try one at a time. You will add +20 to the end of the line so that 835 would look like

    newH = el_height - st+20;

    and 840 would look like

    newH = (el_height/2) + 20;

    Remember, only one of them, if you add to both then you would increase the size of logo before shrinking too.

    Thanks,

    Nick

    #133866

    Thanks so much!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘TEXT IN THE HEADER’ is closed to new replies.