Forums

modmat Home link bug when Giving WordPress its Own Directory (1 post)

  1. MugenHAN
    Member
    Posted 9 months ago #

    I discovered a bug in modmat's sandbox.php when following the article, Giving WordPress Its Own Directory, where clicking Home will take you to the URL listed in Settings > General > WordPress address (URL), which may not display your WordPress homepage properly.

    Locate the following code in wp-content/themes/modmat/functions/sandbox.php:

    echo '><a href="' . get_settings('siteurl') . '">Home</a>';

    And replace it with this line:

    echo '><a href="' . get_option('home') . '">Home</a>';

    Cheers!

Reply

You must log in to post.

About this Topic

  • RSS feed for this topic
  • Started 9 months ago by MugenHAN
  • WordPress version: 2.7
  • This topic is not a support question

Tags