Site logo

Archived topic

Overwrite Existing Content With A Hook

23 replies · Started by Heather on August 7, 2019

Viewing posts 16–24 of 24

In that case you can just target the body class of category as the initial selector in your CSS.

I don't see where the class of category is. Everything in an archive page is a post that you can click on to read that article. I can't target things like article or post because those are also applied to the blog post itself.
What I mean is you have those boxes you see from my custom hook, and those are designed to show the user all the posts that exist for that category, and those all have classes like article and post. But when you click one of them to read the actual post, all that content of the post also exists in an article with general classes like post, so that means it would change the look of the actual content itself.
classes
classes
Like I said, I made a custom page, I just want to get rid of that one thing I can't remove from the original posts which is the title. If there is no way to do that, then that's fine and i will just manually hide them.

The class is attached to the <body> tag of the page. This is where you will find any classes that are specific to the page or post that you're on.

So for example, i want to target the entry title link on all the articles displayed in my category archives i would do this:

.category .entry-title a {
    font-size: 14px;
    color: red;
}

Ok, I will try working with that. I will leave this open for the time being so I can come back to it if I am in need of anything.

Appreciate your time.

You're welcome. Let us know how you get on.

So far so good, only issue I'm running into now is that the pagination nav and page header are not showing up at the bottom and top (respectively) of the page. I had to display:flex the .site-main and those are unfortunately both inside of that, and I can't seem to re-arrange them (can't make them into a column to re-order). Any suggestions?
pagination

Whats the reason for having the flex on the .site-main?

You're correct, I realized I could just change the amount of columns I want posts to be displayed as, everything is good now!

Thank you for all your help.

Awesome - glad to hear you got it working the way you need.

This archived topic is closed to new replies.