WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Assign stylesheet directory to a variable (3 posts)

  1. Ryan Paul
    Member
    Posted 6 years ago #

    I want to assign the:

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

    to a variable... but don't know how.

    $spath = bloginfo('stylesheet_directory');

    does not work. Anyone PLEASE?

  2. Ryan Paul
    Member
    Posted 6 years ago #

    Already fixed this:

    $whatever = get_bloginfo('stylesheet_directory');

  3. hamzamusa
    Member
    Posted 6 years ago #

    Thanks For replying Back it helped me :D

Topic Closed

This topic has been closed to new replies.

About this Topic