• Welcome to WooUSEFUL by PHPVIBE . Please log in.

how to reference css in head tag?

Started by kankrumah,

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

kankrumahTopic starter

Hello Marius P,

I have created a costumed dark and light css stylesheet files.
How do I reference these css files or which files head tag should place them into?  I am going to use JavaScript toggle between these costumed css files.

Thank you
  •  

Marius

If this helped, consider buying me a coffee.
20 years coding, tweaking, building in PHP. Still creating!
  •  

kankrumahTopic starter

  •  

kankrumahTopic starter

I have use register_style('your style url') inside the tpl.header.php.

I would like to also reference my costumed css ID in javascript, and I was wondering where to put the css stylesheet tag(<link rel="stylesheet" href="light-mode.css" id="light-mode-stylesheet">)?

Thank you
  •  

Similar topics (7)