WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. jahur
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

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

  3. jahur
    Member
    Posted 1 year 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