WordPress.org

Ready to get started?Download WordPress

Forums

adding code to my site image header (2 posts)

  1. paperclip
    Member
    Posted 2 years ago #

    Hi guys, right, I want to add some code, usemap="#Map", to my main site header graphic.

    I tracked it down to header.php

    but... it's a load of php... I'm using weaver theme, where do I put the code?

    [ Moderated - Please use pastebin.com for more than 10 lines of code. ]

  2. paperclip
    Member
    Posted 2 years ago #

    sorry, is this right,

    <div id="branding" role="banner">' . "\n");

    $per_page_code = weaver_get_per_page_value('page-header-insert-code'); /* or on a per page basis! */
    if (!empty($per_page_code)) {
    echo(do_shortcode($per_page_code));
    } elseif (weaver_getopt('ttw_header_insert')) { /* header insert defined? */
    if (weaver_getopt('ttw_header_frontpage_only')) {
    if (is_front_page()) {
    echo (do_shortcode(weaver_getopt('ttw_header_insert')));
    }
    } else {
    echo (do_shortcode(weaver_getopt('ttw_header_insert')));
    }
    }

    /* The Dynamic Headers shows headers on a per page basis - will also optionally add site link */
    if (function_exists('show_media_header')) show_media_header(); /* **Dynamic Headers** built-in support for plugin */

    do_action('wvrx_extended_header_insert'); /* add any extension header insert */
    do_action('wvrx_super_header_insert'); /* future extension */

    /* ======== HEADER IMAGE ======== */

    if (!weaver_is_checked_page_opt('ttw-hide-header-image')) {
    if (HEADER_IMAGE_HEIGHT > 0 && !(weaver_getopt('ttw_header_frontpage_only') && is_front_page() )) {
    if (weaver_getopt('ttw_link_site_image')) {
    ?>
    " title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.