Support » Fixing WordPress » Assign stylesheet directory to a variable

  • Resolved Ryan Paul

    (@othellobloke)


    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?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Assign stylesheet directory to a variable’ is closed to new replies.