WebsiteBaker Support (2.8.x) > Templates, Menus & Design

Resposive or mobile friendly template

<< < (3/10) > >>

instantflorian:
See attachment.
I just changed the float of the former right column to float:left and removed the checks if the 2nd block has content, so the column is always shown.
On small screens, the left column is shown beyond the main content.
The sub menu needs some more styling of course.

I guess the same way responsive blue could be modified.

Generally spoken, a left column for showing the sub navigation is not particularly needed as all childpages are listed in the main navigation bar.

applepie:

--- Quote from: instantflorian on May 12, 2015, 08:11:35 AM ---Generally spoken, a left column for showing the sub navigation is not particularly needed as all childpages are listed in the main navigation bar.

--- End quote ---
Thanks for taking the time to fix this. Greatly appreciated. I think what I needed is the sub-menus showing on all the pages on the left. Your template is not showing at the moment. I don't want showing from the main menu.  How can I get it showing on all the pages? Cheers

instantflorian:
Have a look at the index.php of the template, at line 91ff. you'll find two show_menu calls.
Refer to Tutorial link removed 404 to find out how to change the sm2 calls to show only the root elements in the main navigation and always the child elements in the left column.

applepie:

--- Quote from: instantflorian on May 12, 2015, 03:57:10 PM ---Have a look at the index.php of the template, at line 91ff. you'll find two show_menu calls.

--- End quote ---
Hi again, I spent last few hours trying to work this out. I have used show_menu2(0, SM2_ROOT+1, SM2_START, SM2_ALL for the childpages and my result show:
[a][menu_title]
[a][menu_title]
[a][menu_title]
[a][menu_title]
[a][menu_title]
[a][menu_title]

Any idea where went wrong?  :?

instantflorian:
Looks for me like an error with the ' signs in the SM2 call.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version