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)