• Resolved pshoeg

    (@pshoeg)


    Hi there!
    I’d like to know if it’s possible to make WordPress choose e.g. style2.css over style.css whenever a page is generated via single.php?

    Thanks!

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

    (@pshoeg)

    Hi guys…

    I found a solution myself, but thought I would share it with you:

    In single.php, write

    <?php include ('header-single.php'); ?>

    instead of

    <?php get_header(); ?>

    Then, simply create a duplicate of header.php called header-single.php, and refer to the stylesheet there.

    I found the trick here.

Viewing 1 replies (of 1 total)
  • The topic ‘Using another stylesheet for single.php’ is closed to new replies.