• How can I get the url of the theme I’m currently using using php? Is there something like <?php bloginfo(‘stylesheet_url’); ?>, but for folder it’s in?

Viewing 3 replies - 1 through 3 (of 3 total)
  • <?php bloginfo(‘stylesheet_url’); ?> calls in the style sheet of your active theme. It creates an absolute url to the style sheet when your pages are generated.

    In what ever directory wp is installed in, go to wp-content : themes : “active theme folder” : style.css

    Or in your http://www.yoursite.com/wp-admin/ to your control panel and go to:
    presentation : theme editor
    and the css for your active theme will show up in the window for you to edit.

    Also if you just go to the blog homepage and view sorce you’ll see the path to your CSS.

    <?php bloginfo('template_directory'); ?>

    ~or~

    <?php bloginfo('stylesheet_directory'); ?>

    They’re usually the same.

    Thread Starter idbehold

    (@idbehold)

    Thanks, Kafkaesqui, that exactly what I was looking for

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘theme_url’ is closed to new replies.