Search code examples
themestumblr

I'm building a theme for tumblr and the {HasPages} doesn't seem to work properly


I've put the HTML draft of the theme so far, with minor CSS edits.

Currently I have all the block posts and everything else that's essential to a tumblr theme but I can't seem to get the {HasPages} block to work properly.

I've tested it on a different tumblr, also. There are pages created and I already have provided some basic CSS for it just in case. But there isn't anything showing up.

Has anyone has this problem and if so, is there a solution I'm missing? The code to display the pages is included.

{block:HasPages}
    <ul>
        <li><a href="/">Home</a></li>
        {block:Pages}<li><a href="{URL}">{Label}</a></li>{/block:Pages}
    </ul>
{/block:HasPages} 

Also, is this a valid web masters' question. I'm not sure.


Solution

  • I just had this issue: a link to a page I created didn't show up.

    I solved this by checking off "Show a Link to this Page" in the Page options. To find this:

    Go to tumblr.com. In the top navigator click the gear. This is where the settings are. On the side, click on the blog you want to customize. A customize button should show up beside the name "Theme". Click on this button. Now your blog will show up with a Customize panel. In the Customize panel there should be a Pages section. Click the Edit button beside the page and a window will pop up. You can find the "Show a Link to this Page" option in this window.

    Let me know if you need any clarification.