Page 1 of 1

navigation bar will not go away on static pages

Posted: Wed Sep 07, 2011 10:06 am
by scionseo
There is a navigation bar appearing on certain static pages, but not others. The pages do not include side bar navigation on the backend. I attempted to disable the navigation bar and now the table is gone, but now it is an unordered list with no content. Can you help me find which file contains this list so I can delete it?

Re: navigation bar will not go away on static pages

Posted: Wed Sep 07, 2011 12:20 pm
by yellowled
scionseo wrote:Can you help me find which file contains this list so I can delete it?
There's usually no need to edit a file, you should have an option in the edit mask for static pages in the backend to disable the navigation. Also, the static pages plugin config offers to set this option by default.

YL

Re: navigation bar will not go away on static pages

Posted: Wed Sep 07, 2011 6:33 pm
by scionseo
Haha wow, I can't believe I missed that. Thank you!

Re: navigation bar will not go away on static pages

Posted: Wed Sep 07, 2011 6:41 pm
by scionseo
One more question, where can I edit out the date at the bottom of static pages?

Re: navigation bar will not go away on static pages

Posted: Wed Sep 07, 2011 7:28 pm
by yellowled
scionseo wrote:One more question, where can I edit out the date at the bottom of static pages?
That one you'll have to do in a template file.

1. copy /plugins/serendipity_event_staticpage/plugin_staticpage.tpl to /templates/YOUR_TEMPLATE/
2. open the copied file in your template's directory in a text editor
3. find this code snippet

Code: Select all

{if $staticpage_lastchange}
    <span class="staticpage_metainfo_lastchange">{$staticpage_lastchange|date_format:"%Y-%m-%d"}</span>
{/if}]
and delete it

4. save – you're done.

YL

Re: navigation bar will not go away on static pages

Posted: Wed Sep 07, 2011 9:15 pm
by scionseo
That worked, but when I set it in place the sidebar plugins dropped to beneath the article on everypage. I have changed everything back and I am seeing the same results. Any suggestions?

Re: navigation bar will not go away on static pages

Posted: Wed Sep 07, 2011 9:19 pm
by scionseo
It is only doing this on static pages

Re: navigation bar will not go away on static pages

Posted: Wed Sep 07, 2011 10:35 pm
by yellowled
scionseo wrote:That worked, but when I set it in place the sidebar plugins dropped to beneath the article on everypage. I have changed everything back and I am seeing the same results. Any suggestions?
Yes, please post a URL to your blog so we can take a look.

YL

Re: navigation bar will not go away on static pages

Posted: Wed Sep 07, 2011 10:50 pm
by scionseo

Re: navigation bar will not go away on static pages

Posted: Wed Sep 07, 2011 11:40 pm
by yellowled
Since you removed more than I suggested in my previous post, it very likely you removed too much, most likely one </div> too many. That way, the sidebar container is not longer within #content on static pages, resulting in the layout fail. Just restore your changes and remove stuff from plugin_staticpages.tpl bit by bit, checking your layout inbetween changes. You can also just grab a fresh copy like you did before.

YL