1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Rep Power

    Diplaying tags/categories on an archive page with CSS


    I appreciate any and all help in advance.

    I'm creating a straightforward blog on Squarespace.

    My blog posts are in categories and have tags. When a visitor selects that category from the right hand column, I'd like them to see the category or tag at the top of the next archive page that they come to. As it is, the correct posts are being displayed but I'd like to add context at the top of the page; something like "filtered by tag: photography".

    My main question--- is this something that I can make happen using CSS?

    I know it's a serious newbie questions; thanks in advance!

    - Ryan
  2. #2
  3. CSS & JS/DOM Adept
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jul 2004
    USA (verifiably)
    Rep Power
    Welcome to DevShed Forums, CobbleHillBK.

    No, CSS is not suited for that kind of thing. Its purpose is to style content, not add content.

    It's best to handle this server-side, but if you don't have access for that kind of thing, JavaScript could be used to do that. (Let me know if you'd like this thread to be moved to the JavaScript forum.)

    As you (may have) found out new users are restricted from posting URLs until they have made 5 posts. You may need to get around this by leaving out the "http://" and putting a space before each ".". Yes this rule is annoying, but the administrators say it's necessary for limiting spam.
    Spreading knowledge, one newbie at a time.

    Check out my blog. | Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Common CSS Mistakes | Common JS Mistakes

    Remember people spend most of their time on other people's sites (so don't violate web design conventions).

IMN logo majestic logo threadwatch logo seochat tools logo