Forum Replies Created
May 25, 2014 at 7:34 pm in reply to: Conditionally remove author box from posts by category #12427
Makes sense. Was worth a shot, though. 🙂
Seems like there should be a way to add a condition to functions.php (thinking this snippet http://my.studiopress.com/snippets/author-box/), but I don’t write php. If you have any thoughts on that, would appreciate it, otherwise I’ll keep looking around.
Thanks much. 🙂May 22, 2014 at 10:30 am in reply to: Conditionally remove author box from posts by category #12380
Thanks Eric. Seemed like that might work… And yes, the goal is to remove the author box only for certain categories.
I tried it with the category name, but it didn’t remove the author box from posts in that category. So, if I would want to try it by category ID, can you tell me how I might structure the CSS to properly identify the category ID? (The ID is 20, but identifying it simply by .20 didn’t do the trick either.)
Got it figured out. Everybody’s lining up nicely now. Thanks much for your help, as always!
Actually, there was no number specified.
Now, if I set it at 4, it displays fine. Four on page one, four on page two, two on page three. Though I’d prefer multiple rows in the portfolio.
If I set it for 8 or 10, I get an error “Sorry, no content matched your criteria.”
When you say it looks fine, can you tell me what you’re seeing? I see a row of four and a row of two on page one, and a row of four on page two. Which doesn’t seem quite right. Wonder if it is displaying differently for you.
Almost, not quite. 🙂
That sent the two stranded posts to the left margin, but it still leaves a 4-2-4 configuration instead of 4-4-2 (in the three rows, total). Not sure why the 2nd row has two by itself?
Eric, thanks for your suggestion here.
This would have been simpler if I’d fully remembered what I’d done. 🙂 Turns out I didn’t need to separate the Welcome sections — I’d swapped the Welcome section in its entirety with Home Feature 1 & 2. When I toggled to the Gray option I lost the styling for the Welcome sections but not the 1 & 2 features. (The white illustrations need to be on a white background.)
I deleted the .welcome, .welcome a, and .welcome p on lines 3115, 3124, and 3132 so they went to the default for the white background and got exactly what I needed. But I don’t think I’d have walked myself to that solution unless you’d suggested editing the css where you did. (I’d been fussing with it unsuccessfully before, and the light finally clicked on.) I suspect I probably could have created a new div class for the whole section but I think was was a little quicker and maybe cleaner.
Thanks so much for your help. 🙂
Blast. Remembered in the middle of the night I’d forgotten to include the link. 🙂
Here you go, and you’ll see my problem fairly immediately in the dark background of the welcome-wide widget.
Never mind; finally revealed itself. Resolved. 🙂