wordpress internal linking for a theme created by me (3 posts)

  1. jahur
    Posted 3 years ago #

    I am developing a wp theme. There is a page where an "Enter" button is available.

    In my html template link is like:
    <span id="enter"><code><a href="ourconcept.php"> ENTER </a></code></span>

    In my wp template it is :

    <span id="enter"><code><a href="<?php bloginfo('stylesheet_url'); ?>/ourconcept.php"> ENTER </a></code></span>

    But is not working. Can anyone help me?

  2. Andrew Bartel
    Posted 3 years ago #

    Change bloginfo('stylesheet_url'); to echo home_url();

  3. jahur
    Posted 3 years ago #

    I changed the code. but it is not working. There is no spelling mistake and ourconcept.php is there.

    <span id="enter"><code><a href="<?php echo home_url(); ?>/ourconcept.php">> ENTER <</a></code></span></p>

Topic Closed

This topic has been closed to new replies.

About this Topic