Forums

[resolved] Change Template for Tag Pages (7 posts)

  1. richieb799
    Member
    Posted 5 months ago #

    Say I go to Google and one of my tag pages is indexed, I click through to it but the page has the Default template

    forexample.com/tag/anytag is ranking

    How do I change this post to another template in my theme other than default

    Do I set this in the tag.php file or the loop.php and if so, what code do I change?

  2. richieb799
    Member
    Posted 5 months ago #

    Never get any help! How is it this hard to tell the tag.php to use a different template

    [please don't bump - the forum is run by volunteers and some questons might take longer to get answered]

  3. alchymyth
    The Sweeper
    Posted 5 months ago #

    if your theme has a tag.php, then edit this to get whatever output layout you want.

    or use tag templates http://codex.wordpress.org/Tag_Templates

    if this is not what you want, please post a link to an actual tag page, to illustrate the problem.

  4. richieb799
    Member
    Posted 5 months ago #

    http://www.seymourdirect.co.uk/tag/elavon-merchant-services/

    Hi Alchymyth, thank you so much for responding, getting a bit frustrated... I'm not great at the code, I'm more SEO.

    The page above is an example, I need the tag pages to look like the rest of the pages in my blog but they look more like Twenty Ten default at the moment

    I've looked in tag.php and tried to replace certain parts with a specific template but to be honest I'm not amazing at code so I don't know where to change this. I'm not great at understanding the template hierarchy either

  5. richieb799
    Member
    Posted 5 months ago #

    I'm not bumping, I just wanted to add that this is how I want the tag pages to look as opposed to the existing format displayed in the link above
    http://www.seymourdirect.co.uk/blog/

  6. alchymyth
    The Sweeper
    Posted 5 months ago #

    the page layout of your linked tag archive page seems to be broken;

    check and try to fix the validation errors:
    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.seymourdirect.co.uk%2Ftag%2Felavon-merchant-services%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

    http://codex.wordpress.org/Validating_a_Website

    (compared to the validation chaeck of the blog page: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.seymourdirect.co.uk%2Fblog%2F&charset=%28detect+automatically%29&doctype=Inline&group=0 )

    also check if the errors might be caused by some post content (un-tested);

    you could also try to rename tag.php into something else, and see if archive.php or index.php takes over - http://codex.wordpress.org/Template_Hierarchy - depending on your theme structure

  7. richieb799
    Member
    Posted 5 months ago #

    Thanks for your response, I have been trying some different options while waiting for your response, I thought that maybe a custom tag page could work as a temporary fix.

    I might try that latter suggestion you made as well

    Thanks

Reply

You must log in to post.

About this Topic