ThemeShaper Forums » Thematic

[closed]

Changing <title> layout using $doctitle

(3 posts)
  • Started 3 years ago by gary-miller
  • Latest reply from wmarkusen
  • This topic is resolved
  1. Hi all, hope someone can help me with this please.

    I'm developing a Child Theme for Thematic and I want to change the default layout of the title tag, as set by $doctitle in the 'header-extensions' file.

    In my own 'functions.php' file I've tried lots of different ways to change what I want to no avail.

    Basically, I want to remove the default 'tab' setting, and one of the new lines after the tag.

    The best I've come up with is:


    function easyaccess_doctitle($doctitle) {
    return $doctitle . "\n";
    }
    add_filter('thematic_doctitle','easyaccess_doctitle');

    All this returns in the html page is:


    <title>Array</title>

    Anyone got any suggestions please?

    Posted 3 years ago #
  2. Well, this is embarrassing!

    I was messing around with the code again and removed the following:

    . "\n"

    And, lo and behold, the problems is resolved!

    Worth leaving in case someone else makes same, silly, mistake...

    Cheers!

    Posted 3 years ago #
  3. wmarkusen
    Member

    I found your post helpful in something I was trying to figure out. Thank you.

    Posted 2 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.