Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
potion
tagDiv Member

@TheMediumUTM – You can use the CSS :nth-child() selector rather than nesting elements in rows. It won’t break the layout, but accurately targeting the element sometimes takes a few tries. I often have to fix the object hierarchy, and also add a property that makes it easy to visually identify so that you know you’ve got the right one, something like:

div.some_known_class > div > div:nth-child(2) { background-color: red; }

<:) denis

  • This reply was modified 11 years by potion.
  • This reply was modified 11 years by potion.
potion
tagDiv Member

Nice! Thanks Lucian.

potion
tagDiv Member

Thanks Lucian. Brilliant job on the Newspaper theme – Excellent.

(Errata: Of course, it wasn’t header.php, it was the parts/header-xxxxxx.php files that I modified in the child theme) – The site is still being built but I’ll remove the maintenance splash page so you can see the mods in action – http://www.catalystmag.co.za

potion
tagDiv Member

I have a solution that is fairly elegant. For now I’ve used a tag for the issue, e.g. “Issue 25”, and that seems to work. For the Block VC Elements you can set both the tag (e.g. issue-25) and the category id (e.g. 15), which will target the correct posts. I’ve also added an “Issue Number:” metabox to the publish section on the post/page editor, and have a modified header.php to use it to show the issue number in the Masthead, and also the month and year from the publish-date field.

potion
tagDiv Member

Thanks Lucian, that worked. However, this will not survive a theme update. Maybe in a future release you can change this so that CSS is used instead.

Denis

  • This reply was modified 11 years by potion.
Viewing 5 posts - 1 through 5 (of 5 total)