navigation bar will not go away on static pages

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
scionseo
Regular
Posts: 13
Joined: Fri Aug 26, 2011 7:44 am

navigation bar will not go away on static pages

Post 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?
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: navigation bar will not go away on static pages

Post 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
scionseo
Regular
Posts: 13
Joined: Fri Aug 26, 2011 7:44 am

Re: navigation bar will not go away on static pages

Post by scionseo »

Haha wow, I can't believe I missed that. Thank you!
scionseo
Regular
Posts: 13
Joined: Fri Aug 26, 2011 7:44 am

Re: navigation bar will not go away on static pages

Post by scionseo »

One more question, where can I edit out the date at the bottom of static pages?
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: navigation bar will not go away on static pages

Post 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
scionseo
Regular
Posts: 13
Joined: Fri Aug 26, 2011 7:44 am

Re: navigation bar will not go away on static pages

Post 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?
scionseo
Regular
Posts: 13
Joined: Fri Aug 26, 2011 7:44 am

Re: navigation bar will not go away on static pages

Post by scionseo »

It is only doing this on static pages
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: navigation bar will not go away on static pages

Post 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
scionseo
Regular
Posts: 13
Joined: Fri Aug 26, 2011 7:44 am

Re: navigation bar will not go away on static pages

Post by scionseo »

yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: navigation bar will not go away on static pages

Post 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
Post Reply