• Hello,
    I’ve just finished getting the child theme right and nothing is bugged. Now I’m trying to add things to the theme but I still didn’t understand how to do two things:

    • I want to change a title’s color from red to blue. How do I know the ID or the class that that HTML element has to be able to do that? Also, is there a way to run a script or something to change every element that has the color x to the color y?
    • Currently my header is locked on the page, so it keeps there on scroll. How do I know which part of the code is doing that and how can I add opacity to it?

    I hope this isn’t asking too much.
    Thank you for all the help you have been given me.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Myntekt

    (@myntekt)

    The theme is Zerif lite

    Hi Myntekt,

    Changing styles to multiple elements, and also controlling opacity, can all be done using CSS. I recommend reading up on some of the basics of CSS, and you will (most likely) make those changes in style.css of your child theme. Try to avoid doing any styling in your PHP/HTML files.

    Thread Starter Myntekt

    (@myntekt)

    huh.. I know about css. And html too. The thing is, I want to run a script that changes all the elements with the color red (which I don’t know the name of, since the parent theme has a lot of them) to the color blue. This could be done one by one but it would take a lot of time to do and to discover all the ID’s/classes.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Identifying an HTML element's name in a page ( php code for opacity)’ is closed to new replies.