Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Base URL in Wordpress

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 212
    Comment on it

    Hello Reader's!

    In wordpress you can use the base url as written below

    <?php echo bloginfo('template_url'); ?>
    

    Lets take an example:-

    If you want to link the CSS

     <link rel="stylesheet" href="<?php echo bloginfo('template_url'); ?>/style.css">
    

    Similarly you can link the images

    <img src="<?php  echo bloginfo('template_url'); ?>/img/logo.png" />
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: