ThemeShaper Forums » Thematic

[closed]

How to change the links in header image

(5 posts)
  • Started 3 years ago by sebastiankubatz
  • Latest reply from helgatheviking
  • This topic is not resolved
  1. I wanted to change the link on my Bloglogo (top left) on my blog: http://blog.sebastiankubatz.de

    It currently links to http://blog.sebastiankubatz.de but I want it to link to http://sebastiankubatz.de

    Where can I change that link?

    Please help me.

    - Sebastian

    Posted 3 years ago #
  2. Edit the function that calls the URL in header-extensions.php found in your extensions folder:

    <div id="blog-title"><span><a href="http://sebastiankubatz.de" title="<?php bloginfo('name') ?>" rel="home"><?php bloginfo('name') ?></a></span></div>

    Posted 3 years ago #
  3. what the heck? DO NOT edit anything directly in the header-extensions.php file or ANY core thematic file. that defeats the whole purpose of child theming... which is pretty brilliant if you ask me. you didn't but i'm saying it anyway.

    i JUST wrote how to use the override function so i will mostly copy from that post

    take a look in the library/extensions/header-extensions.php file of thematic. my first step when i want to modify something is to figure out where it is coming from. 90% of the time it is coming from the extensions folder.... probably 100% of the time if the info is dynamic at all (like in this case).

    you will find the thematic_blogtitle() function is the one that spits out the blog title and its link. so to change how to spits things out you'll want to create an override function in your child's functions.php

    function childtheme_override_blogtitle(){
    //stuff
    }

    i usually copy over the original function into my override and then hack away from there. the blog-title link comes from the home URL of the wordpress install. the link you want to use seems outside of wordpress? the easiest thing would just be to hard code it into the override

    it will be same process for 80% of the things you want to change w/ thematic...

    Posted 3 years ago #
  4. @ helgatheviking: thank you very much for your help but I don't understand a single word you say. I'm totally new to all this wordpress and php stuff.
    How much would you charge me to do this for me... just changing that link. You could also contact me by email or facebook (Sebastian Kubatz) if you like.
    Thank you ver much.

    @SwissWebMiss: I tried that earlier and it did not work.

    - Sebastian

    Posted 3 years ago #
  5. find the following in your autofocus thematic-functions.php

    //	- Add new Thematic Blog Title
    function autofocus_blogtitle() { ?>
    	<div id="blog-title"><a href="<?php echo get_option('home') ?>/" title="<?php bloginfo('name') ?>" rel="home"><span><?php bloginfo('name') ?></span></a></div>
    <?php }
    add_action ('thematic_header', 'autofocus_blogtitle',3);

    and change it to:

    //	- Add new Thematic Blog Title
    function autofocus_blogtitle() { ?>
    	<div id="blog-title"><a href="http://sebastiankubatz.de/">" rel="home"><span><?php bloginfo('name') ?></span></a></div>
    <?php }
    add_action ('thematic_header', 'autofocus_blogtitle',3);

    the reason my override function wouldn't work (nor swisswebmiss' thematic hacking) is that autofocus already removed the thematic_blogtitle function and replaced it w/ its own. so you have to make the change there. i can't charge you for that but if you feel compelled to buy me a glass of wine my email is helgatheviking AT gmail DOT com

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.