Creating a full-width grey bar below menu

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Mon Aug 18, 2014 1:11 pm
Reply with quote
Report this post
Hi.

I am using Music State J3.0 template and would like to display a single a grey bar below the menu bar with a height of px.

Ultimately, I'd like to place some links in this but please can you advise how I can create a single bar across the full width of the page, just above the Image Show GK4 slideshow?

Thanks!
User avatar
Gold Boarder

GK User
Mon Aug 18, 2014 2:12 pm
Reply with quote
Report this post
Simple way would be to create a new module in header position, make sure its order is above the slideshow. Then add your links like this <p style="text-align: center;">Link 1 Link 2 Link3 Link 4 Link 5</p> you can use the link buttom in the editor to create the link.. Add a Module Class Suffix in the advanced tab. Anything you want like " .linkz". In your template params make sure css override is turned on then you can style the module position by adding css to custom.css.. Try this out. If you need help you can reply or email me with ftp and admin and I can help you out

.linkz {
background-color: #ccc;
height: 50px;
padding: 1px 0;
}
User avatar
Gold Boarder

GK User
Mon Aug 18, 2014 2:40 pm
Reply with quote
Report this post
Hey thanks a lot devsmi - great clear advice that worked a charm!! :-)

I really appreciate you getting back to me so quickly too.
User avatar
Gold Boarder

GK User
Mon Aug 18, 2014 2:52 pm
Reply with quote
Report this post
You are welcome teainsider. I forgot to mention that we could also add a new module position to the template for ya so your bar has its own dedicated position.

If you need any help styling the bar let me know. just need your url to take a look.

:))


teainsider wrote:Hey thanks a lot devsmi - great clear advice that worked a charm!! :-)

I really appreciate you getting back to me so quickly too.
User avatar
Gold Boarder

GK User
Mon Aug 18, 2014 3:10 pm
Reply with quote
Report this post
devsmi, I am content with this result but one question I have for you is... is it possible to make this new grey bar stay on top even when you scroll down the page (like with the menu)...?
User avatar
Gold Boarder

GK User
Mon Aug 18, 2014 3:20 pm
Reply with quote
Report this post
Yes ofcourse. So replace that last code I gave you with this. Changing the position

.linkz {
background-color: #ccc;
height: 50px;
padding: 1px 0;
position: fixed;
width: 100%;
z-index: 1001;
}
User avatar
Gold Boarder

GK User
Mon Aug 18, 2014 3:22 pm
Reply with quote
Report this post
Also Im sure you know this already but the grey bar #ccc you can change to any HEx color code which you can choose here http://www.colorpicker.com/
User avatar
Gold Boarder

GK User
Mon Aug 18, 2014 3:42 pm
Reply with quote
Report this post
OK, so I replaced:

.linkz {
background-color: #ccc;
height: 50px;
padding: 1px 0;
}

with:

.linkz {
background-color: #ccc;
height: 50px;
padding: 1px 0;
position: fixed;
width: 100%;
z-index: 1001;
}

Sadly, it hasn't worked. Any ideas why?
User avatar
Gold Boarder

GK User
Mon Aug 18, 2014 3:49 pm
Reply with quote
Report this post
Are you able to show me your url? either here or PM
User avatar
Gold Boarder

GK User
Mon Aug 18, 2014 4:20 pm
Reply with quote
Report this post
Ok my bad, in the module suffix just add linkz no space or period before
User avatar
Gold Boarder


cron