ThemeShaper Forums » Thematic

[closed]

Make header image clickable

(8 posts)
  • Started 2 years ago by Alta Alley
  • Latest reply from Jagst3r15
  • This topic is not resolved
  1. Alta Alley
    Member

    I know I'm not the first person to ask this but I've been trying every help post I can find and still no luck. I'm using a Thematic based template and just trying to get the header image (which is a background) to be clickable on this site: http://www.smarttripseugene.com/

    If you need any code snippets or additional information I'm happy to provide it.

    Thanks for your help.

    Posted 2 years ago #
  2. usually this is best done by leaving the blog-title in place.. replacing it w/ an image.. and indenting away the text. you don't have any link items right now to click on.

    Posted 2 years ago #
  3. Alta Alley
    Member

    How do I put the blog title back in place? This is a theme I didn't originally build so I'm struggling a little to get in the mind of the person who modified the thematic framework.

    Posted 2 years ago #
  4. somewhere there must be a

    remove_action('thematic_header','thematic_blogtitle',3)

    and some other related stuff. you can delete that or comment it out.

    dump your functions.php into pastebin.com and i'll take a look

    Posted 2 years ago #
  5. Alta Alley
    Member

    <?php

    // Load Child Theme scripts
    // http://www.cssnewbie.com/example/equal-heights/
    function childtheme_scripts() { ?>
    <script type="text/javascript">
    jQuery.noConflict();
    function equalHeight(group) {
    tallest = 0;
    group.each(function() {
    thisHeight = jQuery(this).height();
    if(thisHeight > tallest) {
    tallest = thisHeight;
    }
    });
    group.height(tallest);
    }
    jQuery(document).ready(function() {
    equalHeight(jQuery(".main-aside"));
    });
    </script>

    <?php }
    add_action('wp_head','childtheme_scripts');

    // Adds a home link to your menu
    // http://codex.wordpress.org/Template_Tags/wp_page_menu
    function childtheme_menu_args($args) {
    $args = array(
    'show_home' => 'Home',
    'sort_column' => 'menu_order',
    'menu_class' => 'menu',
    'echo' => true
    );
    return $args;
    }
    add_filter('wp_page_menu_args','childtheme_menu_args');

    // Add a drop down category menu
    function childtheme_category_menu() { if(!is_page()) { ?>
    <div id="category-access">
    <div id="category-menu" class="menu">
    <div class="menu-title"><?php _e('Categories:', 'thematic'); ?></div>
    <ul id="category-nav" class="sf-menu">
    <?php wp_list_categories('title_li='); ?>

    </div>
    </div>
    <?php } }
    add_action('thematic_belowheader','childtheme_category_menu', 5);

    // Add a widgetized aside just below the header
    function childtheme_leaderasides() { ?>

    <?php if ( is_sidebar_active('1st-leader-aside') || is_sidebar_active('2nd-leader-aside') || is_sidebar_active('3rd-leader-aside') ) { // one of the leader asides has a widget ?>
    <div id="leader">
    <div id="leader-container">

    <?php if ( function_exists('dynamic_sidebar') && is_sidebar_active('1st-leader-aside') ) { // there are active widgets for this aside
    echo '<div id="first-leader" class="aside sub-aside">'. "\n" . '<ul class="xoxo">' . "\n";
    dynamic_sidebar('1st-leader-aside');
    echo '' . "\n" . '</div><!-- #first-leader .aside -->'. "\n";
    } ?>

    <?php if ( function_exists('dynamic_sidebar') && is_sidebar_active('2nd-leader-aside') ) { // there are active widgets for this aside
    echo '<div id="second-leader" class="aside sub-aside">'. "\n" . '<ul class="xoxo">' . "\n";
    dynamic_sidebar('2nd-leader-aside');
    echo '' . "\n" . '</div><!-- #second-leader .aside -->'. "\n";
    } ?>

    <?php if ( function_exists('dynamic_sidebar') && is_sidebar_active('3rd-leader-aside') ) { // there are active widgets for this aside
    echo '<div id="third-leader" class="aside sub-aside">'. "\n" . '<ul class="xoxo">' . "\n";
    dynamic_sidebar('3rd-leader-aside');
    echo '' . "\n" . '</div><!-- #third-leader .aside -->'. "\n";
    } ?>

    </div><!-- #leader-container -->
    </div><!-- #leader -->
    <?php } ?>

    <?php }
    add_action('thematic_belowheader','childtheme_leaderasides',6);

    // Add a widgetized aside above the main asides with the start of a wrapper: #sidebar
    function childtheme_sidebarstart() { ?>
    <div id="sidebar">
    <div id="crown" class="aside crown-aside">
    <ul class="xoxo">
    <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('crown-aside') ) : // begin sidebar crown widgets ?>

    <li id="thematic-power-blog-subscribe" class="widgetcontainer widget_thematic_power_blog_subscribe">
    <h3 class="widget-title"><?php _e('Subscribe', 'thematic'); ?></h3>

    <?php endif; // end sidebar crown widgets ?>

    </div><!-- #crown .aside -->
    <?php }
    add_action('thematic_abovemainasides','childtheme_sidebarstart');

    // Close div#sidebar
    function childtheme_sidebarend() { ?>
    </div><!-- #sidebar -->
    <?php }
    add_action('thematic_belowmainasides','childtheme_sidebarend');

    // Add breadcrumbs above the footer if Yoast Breadcrumbs are installed
    // http://yoast.com/wordpress/breadcrumbs/
    function childtheme_breadcrumbs() {
    if ( function_exists('yoast_breadcrumb') ) { ?>
    <div id="breadcrumb-nav">
    <div id="breadcrumb-nav-container">

    <?php yoast_breadcrumb('<p id="breadcrumbs">','</p>'); ?>

    </div><!-- #breadcrumb-nav-container -->
    </div><!-- #breadcrumb-nav-container -->
    <?php }
    }
    add_action('thematic_abovefooter','childtheme_breadcrumbs',5);

    // Add Thematic Power Blog Subscribe Widget
    function thematic_power_blog_subscribe() { ?>
    <li id="thematic-power-blog-subscribe" class="widgetcontainer widget_thematic_power_blog_subscribe">
    <h3 class="widget-title"><?php _e('Subscribe', 'thematic'); ?></h3>

    <?php }

    // Register new widgetized areaa and the new widgets
    function childtheme_widgets_init() {

    // Register new widgetized areaa
    register_sidebar(array(
    'name' => 'Crown Aside',
    'id' => 'crown-aside',
    'before_widget' => '<li id="%1$s" class="widgetcontainer %2$s">',
    'after_widget' => "",
    'before_title' => "<h3 class=\"widgettitle\">",
    'after_title' => "</h3>\n",
    ));

    register_sidebar(array(
    'name' => '1st leader Aside',
    'id' => '1st-leader-aside',
    'before_widget' => '<li id="%1$s" class="widgetcontainer %2$s">',
    'after_widget' => "",
    'before_title' => "<h3 class=\"widgettitle\">",
    'after_title' => "</h3>\n",
    ));

    register_sidebar(array(
    'name' => '2nd leader Aside',
    'id' => '2nd-leader-aside',
    'before_widget' => '<li id="%1$s" class="widgetcontainer %2$s">',
    'after_widget' => "",
    'before_title' => "<h3 class=\"widgettitle\">",
    'after_title' => "</h3>\n",
    ));

    register_sidebar(array(
    'name' => '3rd leader Aside',
    'id' => '3rd-leader-aside',
    'before_widget' => '<li id="%1$s" class="widgetcontainer %2$s">',
    'after_widget' => "",
    'before_title' => "<h3 class=\"widgettitle\">",
    'after_title' => "</h3>\n",
    ));

    // Register the new widgets
    register_sidebar_widget('Thematic Power Blog Subscribe', 'thematic_power_blog_subscribe');

    }
    add_action( 'init', 'childtheme_widgets_init' );

    ?>

    Posted 2 years ago #
  6. for future ref, to post code here you need to put it between two ` marks. doesn't look like it got too mangled though.

    i don't see anything pertaining to thematic_header so the damage must be getting done somewhere else.

    Posted 2 years ago #
  7. lincson
    Member

    Making header image clickable... This worked for me:

    http://thematic.wizardinternetsolutions.com/index.php?title=Thematic_Header_Image

    I already had the header image as a background image in my div blog-title. So, I did not add the background-image in the css in the link above. I added everything else exactly the way that website said. It worked. Immediately!

    Good luck!

    Posted 1 year ago #
  8. Why did you bump a topic that is 10 months old????

    Posted 1 year ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.