[Resolved] reuse CSS class of the GP color H2 tag

Home Forums Support reuse CSS class of the GP color H2 tag

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #907474
    Sebastien

    Hi,

    I’ve defined colors presets in my GP theme customization>color>H2.
    This color is the main color of my site. I use this codecolor into many CSS code.

    1) I would like to reuse the same color without having to rewrite everytime the same: #codecolor
    How can I do to refer the h2 GP heading preset from any other CSS code?
    thanks

    2) In the case I would create a class .idendity-color (that doest include in GP) to be reuse the style{color:#taf} wherever I need. How can I do?

    thank for help

    #907728
    David
    Staff
    Customer Support

    Hi there,

    it would take a custom function to do that, not that easy. What elements are you wanting to use the ‘#colorcode’ on?

    Simplest way is to create a CSS class that can be added to any element. Then if you wanted to update the H2 you would just need to also edit the one CSS class to make those other changes

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.