ThemeShaper Forums » Thematic

[closed]

Changing the location of the title for non index page.

(5 posts)
  • Started 10 years ago by yannibmbr
  • Latest reply from yannibmbr
  • This topic is not resolved
  1. Hello all,
    So I have a question about page titles. I'd like to be able to change the location of my page titles for single post pages, archive pages, category pages, etc.
    I accomplished this in the index page by doing the following:

    <i>// The Index Loop
    function thematic_index_loop() {
    /* Count the number of posts so we can insert a widgetized area */ $count = 1;
    while ( have_posts() ) : the_post() ?>
    <div class="entry-content">
    <div id="post-<?php the_ID() ?>" class="<?php thematic_post_class() ?>"></i>

    Note the psoition of "entry-content," there. I'd like to wrap my posts inside of the entry-content div, basically. I'm just not sure how to do this for the other page types. However, I tried this for the other types of content pages, such as single post and can't seem to do replicate the same result.

    I hope this makes sense.

    Thank you.

    Posted 10 years ago #
  2. I suppose it helps if I provide an example: http://dev.toekneesongs.com
    The front page, you'll notice, each entry-content div is styled in such a way that it wraps around the post title. When you click on one of these entries, you'll see that, too. However, if you click on one of the menu navigation items, you'll see that the page does not wrap the title within the div, if that makes sense.

    To get the front page contents to do this, I modified the content-extensions.php file. If there was a way to do this without modifying that file that would be great. However, I'll settle for knowing how to move around the single page titles.

    Thanks.

    Posted 10 years ago #
  3. Sorry to bump an old thread, but I never did get an answer on this and obviously modifying core Thematic files is a no-no. To accomplish what I'm describing above, I imagine it requires a filter, or perhaps a hook. Would anyone have any input on that?

    Posted 8 years ago #
  4. you can copy the thematic_indexloop() function from the thematic/extension/content-extensions.php file. paste it into your child's functions.php and rename it to

    childtheme_override_indexloop() {
      //do what you you will
    }
    Posted 8 years ago #
  5. I will give that a try, Ms. Viking. ;)
    Thanks.

    Posted 8 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.