+ Reply to Thread
Results 1 to 10 of 10

Thread: Help Please... w/ bug fix (?) and modification to page...page title and post title...

  1. #1
    Join Date
    Apr 2011
    Posts
    6

    Default Help Please... w/ bug fix (?) and modification to page...page title and post title...

    Hi and thank you for your time and interest in advance.

    I'm using Cutline 1.4- 3 Col. on WP ver. 3.1.

    I've managed to get Cutline modified almost the way that I want it by reading and just trying to figure things out, but I'm now stuck at the limit of my knowledge. I need some help with a couple of questions but I will limit to one Q per post out of courtesy.

    You can take a look at the page that I'm working on

    http://random-specific.com/wordpress/

    to see where I've gotten to so far.

    I'm trying for a bit of consistency across all pages and I'm not sure if this is an oversight or bug or what, but I would like to make it better.

    If you look at the site, you will see the normal nav bar that I have gotten to work ok going to new Archive Pages etc. However in the left sidebar using the link to January Archive you will get a page result display that I like very much (hr @ top, center page, below the image, that is in line with the left and right side bar top hr, then title, then gray dotted hr, and THEN start the Post Title).

    http://random-specific.com/wordpress/?m=200701

    I would like to be able to duplicate this on ALL existing pages and future new pages via both, altering existing pages and the template for creating a new page. However I have not been able so far, to identify exactly where to modify in the CSS, existing pages, and Templates and figure out what to change it to.

    Thanks once again and best to all.....

  2. #2
    Join Date
    Feb 2009
    Posts
    605

    Default

    To clarify, did you want the heading (with "Entries from January 2007") to appear everywhere? You can copy the code from archive.php, specifically

    <h2 class="archive_head">...</h2>
    The question is what text you're going to use in index.php, page.php, single.php, etc. because those already have post/page titles.

  3. #3
    Join Date
    Apr 2011
    Posts
    6

    Default re: Help Please... w/ bug fix (?) and modification to page...page title and post titl

    Thanks for reading and answering. To be clear, I like the "format" that can be seen on the Archive page and want to use the "format" on every page as "layout". Each individual page would have would have it's own unique "title" in that format, then below, the normal Cutline formating for that page would resume. Perhaps it is adding another "class" to the style sheet? In any case, I would want to be able to control the "title" for each page that is created or generated, hopefully without too much hacking every time I create a new page. I think that you get the idea. Once again, thanks for your interest and help.

    Update:

    Using your suggestion I was able to put what I would call the change in "format" at the top of each existing page. Very simple. Thank you. But.....

    I notice two things. First, in just adding the
    Code:
    <h2 class="archive_head">Title Goes Here...</h2>
    to "archives.php" or sitemap.php as stand alone pages, that addition works fine. It is a small quick hack.

    However in adding the code above to "page.php" "single.php", etc, that are used as templates for all of the other existing pages (or future pages) that are generated through the dashboard and editor interface of WP, the problem is that they will NOT have a "unique title" that I will want to give each page, although they will have the 2 horizontal lines, unique text between the HR's for each page. This seems to be because that "section" of "page one" and "page two" are not editable in the "pages" section of WP and the pages do not show up as unique pages such as "Sitemap" in the editor of WP.

    Perhaps is it a bit of code that is generated in the php of these template pages?
    I know enough HTML and CSS to get this far but my php is not quite rudimentary yet.

    Thanks again.
    Last edited by random01; 04-19-2011 at 08:42 PM. Reason: : ) Partial solution due to your input....

  4. #4
    Join Date
    Apr 2011
    Posts
    6

    Default

    I think get it. The answer must be that I need both CSS code to create a "class" and php code in index.php, single.php and page.php to execute and place the correct "formating" and "unique text" on each page.

    I can create the CSS "class", but how to create the php code to execute the unique "Text / Title" on all existing pages and future pages? Is this a better question to ask?

    Thanks again for your attention and time.....

  5. #5
    Join Date
    Feb 2009
    Posts
    605

    Default

    The template tag <?php the_title(); ?> generates the title specific to each page and post.

    Open single.php and page.php and remove the <h2> you just added. Find the other <h2> that contains the the_title() template tag. Then add the archive_head class, so it looks something like this:

    PHP Code:
    <h2 class="archive_head"><?php the_title(); ?></h2>


    The point of the two different headings is to distinguish what "section" you are in from the post titles, but it looks like what you want is to make them look alike.

  6. #6
    Join Date
    Apr 2011
    Posts
    6

    Default

    Thank you Sofimi !!! That works beautifully on all the pages.... Except one: Comments.PHP

    I have tried using and or placing variations of that snippet within that page in order to put the same "<h2>" in the same place on every page: Above the comments page (above the "<--- older" "newer --->" links.

    Whatever I do, it is placed at the BOTTOM of the comment section not the TOP !!!!!???? OR.... as I tweak and try different things, sometimes the right sidebar will disappear OR nothing will show up at all.

    Hmmmmm. Verr-rrry Inter-esting! I sure am learning a lot.

    Thanks again for your help.....
    Last edited by random01; 04-26-2011 at 09:39 PM. Reason: spelling errors

  7. #7
    Join Date
    Feb 2009
    Posts
    605

    Default

    You mean to change the headings in the comments list and comment form right?

    Just go look for <h3 class="comments_headers">...</h3> in comments.php and replace it with <h2 class="archive_head">...</h2>. Note the h3 becomes h2 to get the right font size.

  8. #8
    Join Date
    Apr 2011
    Posts
    6

    Default Not exactly.......

    Quote Originally Posted by sofimi View Post
    You mean to change the headings in the comments list and comment form right?

    Just go look for <h3 class="comments_headers">...</h3> in comments.php and replace it with <h2 class="archive_head">...</h2>. Note the h3 becomes h2 to get the right font size.
    Thank you again Sofimi....
    What I want to do is have the upper part of all pages appear the same.

    If you look at:
    http://random-specific.com/wordpress/
    http://random-specific.com/wordpress/page-one/
    etcetera.... etcetera....

    Then look at:
    http://random-specific.com/wordpress...k-in-progress/ (the comments page)...

    You see that at the top of the center column, all pages now have a title bar in the side bars and center column EXCEPT for the Comments page.

    I would like to add to and continue that consistency of the other pages, to the TOP of the comments page and have an header bar at the top of the "Comments Navigation" in the same place at the top of the center column as the other pages, reading :
    ____________________________________
    COMMENTS
    --------------------------------------------------

    But, I do NOT want it appearing at the bottom of the page where it currently keeps appearing when changing that section of code *<h3 class="comments_headers">...</h3>*.

    I hope that this is a little clearer than mud. Pardon my inarticulate composition earlier.
    Thanks.....

  9. #9
    Join Date
    Apr 2011
    Posts
    6

    Default I Found It!!!!!

    Sofimi....

    I finally tried looking in Navigation.php and Lo, there was the "Golden Triangle of Destiny" a Shining Light in the darkness of ignorance. You see below that I have inserted the "<h2>" below the first line of the page and added "COMMENTS" in place of "<?php the_title(); ?>".

    <?php if (is_single()) : ?>
    <h2 class="archive_head">COMMENTS</h2>
    <div class="navigation">
    <span class="previous"><?php previous_post_link('&larr; %link') ?></span>
    <span class="next"><?php next_post_link('%link &rarr;') ?></span>
    </div>
    Now there is the consistency across all pages that I was seeking.

    I certainly do appreciate your help as it spurred me to keep looking for myself and ultimately to learn. Next..... a couple of other small tweaks. But for now... thanks again and best to you.
    Last edited by random01; 04-27-2011 at 06:05 PM. Reason: spelling

  10. #10
    Join Date
    Feb 2009
    Posts
    605

+ Reply to Thread

Similar Threads

  1. How To Remove Horizontal Line Below Every PAGE Title?
    By magentawave in forum Posts, Pages, Comments
    Replies: 1
    Last Post: 10-31-2010, 02:38 PM
  2. Title not showing on front static page
    By antorera in forum Bugs & Fixes
    Replies: 10
    Last Post: 02-01-2010, 12:40 PM
  3. h2 shows in different sizes in title & body of post
    By hallie in forum Community Exchange
    Replies: 3
    Last Post: 08-03-2009, 01:03 PM
  4. Help with crafting this post and title for Diggs
    By davidg in forum Ask the Experts
    Replies: 0
    Last Post: 02-27-2008, 09:21 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts