ThemeShaper Forums » Thematic


wp_title() won't post page name

(3 posts)
  • Started 12 years ago by chrisdot
  • Latest reply from Caramboo
  • This topic is not resolved
  1. I'm trying to put the page name at the top of the sidebar. Here's my code:

    function page_title() {
    	?><div class="sidebar_text"><?php wp_title(); ?></div>

    It's the first time I've tried writing my own function...I know it's simple but I can't seem to find what's wrong with it. What am I missing?

    Posted 12 years ago #
  2. Hi chrisdot, i've run in to this same issue. have you found a solution?

    here's what i have

    function additional_header_content_page_title(){
    	echo '<h1 class="page-title">' . wp_title('', FALSE) . '</h1>';
    add_action('thematic_header', 'additional_header_content_page_title', 4);
    Posted 11 years ago #
  3. Caramboo

    How about:

    function my_page_title() {
    if (is_page() || is_single()) {
    echo get_the_title(get_the_ID());
    add_action('thematic_abovemainasides', 'my_page_title');

    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.