1. bludove
  2. Sherlock Holmes
  3. Commercial Templates
  4. Saturday, 16 August 2014
  5.  Subscribe via email
In looking through the demo, I notice that sometimes, going from page to page it pops back to how it looks when you go to the home page and forces the visitor to have to scroll down to see the content on that page. Other times it doesn't pop back to the top and stays where the navigation and logo are at the top and the content is where you can see it. Not sure if I'm explaining correctly or not. However I want to know how, on the demo, this is controlled.

Basically, I don't want the user to have to scroll down each time they click on a new page. Once they have scrolled down on the home page, and they go to other pages, I would like the menu to remain fixed to the top.

My site is http://bludovedemo.com/carter

Thanks
Accepted Answer Pending Moderation
0
Votes
Undo
Additionally - I just checked the site on mobile and the logo and background image look terrible.
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hi bluedove

This can be achieved by creating 2 different styles of your template. One for the homepage with the 'Header Vertical Spacing' set to the required amount (eg. 250) and another for the rest of your site with the 'Header Vertical Spacing' set to 0. For details on creating multiple styles may I suggest the following tutorial... http://www.joomla51.com/tutorials/item/creating-multiple-template-styles

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
The background uses the 'background-size:cover' property which can act differently to what you may expect on some mobile devices. You could try adding the following to the Custom CSS field of your templates parameters which will disbale this property on mobile devices..


@media only screen and (max-width: 1024px) {
#body_bg, #container_header {
-webkit-background-size: auto !important;
-moz-background-size: auto !important;
-o-background-size: auto !important;
background-size: auto !important;
}}
#body_bg {
background-position: 0 0;
}


Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks. I will test that out.

Now I'm having another challenge. I set up a style for the interior pages and made the logo smaller. However, I seem to be missing some styling. When I first click on one of the interior pages -- About, Green Building, etc -- basically anything but the home button, the logo and menu appear like they are supposed to. After you scroll down the page, the menu pops down. I have been all over the CSS and cannot find what I need to change.

http://bludovedemo.com/carter/

Please advise.

Thanks
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

In your templates scripts.php (../templates/j51_lifestyle/php/scripts.php) could you try editing (reducing) the following where 122 is the height your top menu sits at when scrolled...


jQuery(window).load(function(){
jQuery("#container_hornav").sticky({ topSpacing: 122 });
});


Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
Hi:

Thank you. I changed it to what I wanted and it worked for the interior pages. However I have a different sized logo on the home pages than what I do on the rest. I have 2 style sheets in the template manager in Joomla and have them assigned to the different pages.

Now on the home page, when I scroll, the navigation covers the logo and doesn't look right. What would be the best way to go about solving this? Does there need to be an additional line of code in the script file that somehow says that if you are on the home page, scroll will be a certain way and if you aren't then it will be something else?

Alternatively - could there a way to make the logo area "shrink" as it scrolls up?

Not sure if this makes sense. I'm attaching a screenshot of the result so far.

Thanks,
Lisa
  1. more than a month ago
  2. Commercial Templates
  3. # 6
Accepted Answer Pending Moderation
0
Votes
Undo
The only work around for this I can think of is to remove the following from your templates scripts.php....


<script type="text/javascript" >
jQuery(window).load(function(){
jQuery("#container_hornav").sticky({ topSpacing: 122 });
});
jQuery(window).load(function(){
jQuery("#container_header").sticky({ topSpacing: 0 });
});
</script>


This code you have removed you can then add to each of your templates styles using the 'Body Custom Code' field in the 'Custom Code' tab of your templates parameters, editing to your own taste in each of the styles.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 7
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok