• Technogran

    (@technogran)


    Hi,
    I am sorry if this seems a bit dim but I have read the posts and tried all the recommended methods of adding a block of text above the category listings but nothing as worked so far.

    I would like to add the same text to the top of each page so it shouldn’t be difficult. Tried moving the various php codes and html to different places in my categories.php but it hasn’t worked.

    Below is the coding on my category php with a text block included in <div id=”mystatictext”> </div>. Could anyone suggest exactly where it should be entered or alternatively a code that would work:

    [code moderated - use the pastebin for any code over the forum limit of 10 lines]

    Many thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • just wondering

    (@just-wondering)

    When you say “top of category pages” are you talking about the top of the content div aka the info part of the page or the top of the page?

    If it’s the top of the category page (content section) put your info somewhere under <div id=”content” role=”main”>, if it’s the top of the page put your info in the header.php.

    If you do that you’ll have to make some sort of if(category){echo text} statement if you only want the text on the category pages only and not on all pages

    Thread Starter Technogran

    (@technogran)

    Thanks for the response. I would like the text to appear in the content div and I have tried several html options under <div id=”content” role=”main”>, but nothing seems to work.

    I am editing the categories.php at server level. Can you suggest anything else? The Suhosin extension is installed on my host server. Could this be the problem?

    just wondering

    (@just-wondering)

    /* Twenty_Ten category.php */
    <div id=”content” role=”main”>

    PUT HTML HERE

    <h1 class=”page-title”><?php ….?></h1>

    If you’ve been placing you’re text like I have above and it’s not working then either I don’t know what you’re wanting or you’re editing one file while having another file active.

    Thread Starter Technogran

    (@technogran)

    I have managed to fix it from the store settings section. I hadn’t selected the ‘show category description’ box and this was preventing me from editing the category.php file. Something so simple, taking so much time to find.

    Thank you for your help with this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add permanent static text to top of category pages’ is closed to new replies.