• I have been using iWeb combined with Blogger to run a website of my artwork. I used a Blogger theme and edited the html to more closely resemble the layout of my existing site (https://markmcleod.org/Mark_Mcleod/News/News.html). I am trying to do the same in WordPress with one of the themes, but am having trouble figuring out php. I would like my Blogger links (in the header..Home, About Mark, News, Portfolio, etc) to also be in my WordPress blog, but don’t know where to place or how to edit php. My wordpress blog with Fall theme by Sadish can be viewed here https://markmcleod.org/Mark_Mcleod/Blog/. Can someone help me figure this out, and maybe explain the differences between html and php for future reference? Thanks

Viewing 1 replies (of 1 total)
  • Possibly in header.php, there’s a div, menu. It should look something like <ul>
    <li><a href="<?php bloginfo('url'); ?>">Home</a></li>
    <?php wp_list_pages('title_li='); ?>
    </ul>

    Which basically is creating an unordered list of your Pages, with an additional link for the home. Below the wp_list_pages tag, you can add additional list items with hard coded links, ie,
    <li><a href="https://bloggerlink1.com">Link 1</a></li>
    <li><a href="https://bloggerlink2.com">Link 2</a></li>

    Bear in mind, since the Pages links are created dynamically, you won’t be able to mix the links, unless you were to manually create the wordpress links like the example I used.

    Since you mentioned iWeb, I guess you are on a Mac. I suggest using the open source free-ware apps CyberDuck for FTP and Smultron for text editing. Once you get more familiar, there are more powerful apps for this, but these are very good free options for starting out (I still use Smultron myself).

    Feel free to post back with more questions.

Viewing 1 replies (of 1 total)
  • The topic ‘adding links to other sites in header, basic php?’ is closed to new replies.