• Hi guys, I’m making my first theme from scratch and I’m trying to use the customizer.

    Senario:
    I have a site with 4 items in the nav bar (e.g. home, contact, about, portfolio)
    I want to set both a primary colour (e.g background) and a secondary colour (e.g. accent for other elements) on each of the 4 pages/categories.
    Also an added feature would be to access these colours and give each of the nav links these colours (respective of the page they link to), but we can focus on the above first…

    Implementation:
    I could simply hardcode some css… but then it wouldn’t work on other sites (I want to share my theme) or on a fifth page.
    I want to have each item/page/category in my primary menu appear in the customizer and the option to choose 2 colours for each item/page/category

    Any ideas how I may implement this?

Viewing 1 replies (of 1 total)
  • Thread Starter ovgandroid

    (@ovgandroid)

    Also, I would like to do this in such a way that in my header.php I can basically write (pseudo code) :
    – get primary colour of this page (the page requested)
    – get secondary colour of this page (the page requested)
    And it can be used in my inline css like this

Viewing 1 replies (of 1 total)

The topic ‘Theme customizer styling each page’ is closed to new replies.