-
AuthorPosts
-
infib Friend
infib
- Join date:
- March 2014
- Posts:
- 17
- Downloads:
- 0
- Uploads:
- 8
- Thanks:
- 12
- Thanked:
- 1 times in 1 posts
June 24, 2014 at 10:46 am #199104Hi Joomlart forum!
I want to change the height of the margin on the top, where can I change it?
I’m using the template JA Appolio!
Sincerely André
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
June 24, 2014 at 11:33 am #540016<em>@infib 433690 wrote:</em><blockquote>Hi Joomlart forum!
I want to change the height of the margin on the top, where can I change it?
I’m using the template JA Appolio!
</blockquote>
Hi as i can see you are using jomsocial application .
it need some change in the jomsocial application margin-top .
can you share the site url so that i can take a tryinfib Friendinfib
- Join date:
- March 2014
- Posts:
- 17
- Downloads:
- 0
- Uploads:
- 8
- Thanks:
- 12
- Thanked:
- 1 times in 1 posts
June 24, 2014 at 11:45 am #540017Hi, and thanks for the quick answer Pankajsharma!
It’s also pretty hight margin on the other pages aswell!
The site URL is http://www.norrut.nu
Sincerely, André
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
June 25, 2014 at 3:41 am #540090Its coming from the header file . height :52px;
That is generated by the jquery .
Try this
Go to
templatesja_appoliojsjquery.affixtopmenu
Find the code
$this.before($('<div class="hplace clearfix"></div>').css('height', $this.outerHeight(true)));
and change into
$this.before($('<div class="hplace clearfix"></div>').css('height', $this.outerHeight(false)));
Let me know if it helps
infib Friendinfib
- Join date:
- March 2014
- Posts:
- 17
- Downloads:
- 0
- Uploads:
- 8
- Thanks:
- 12
- Thanked:
- 1 times in 1 posts
June 25, 2014 at 7:44 am #540122Hi again, thanks for your reply!
I don’t got it to work when I changed the “$this.before($(‘<div class=”hplace clearfix”></div>’).css(‘height’, elmheight));” to “$this.before($(‘<div class=”hplace clearfix”></div>’).css(‘height’, $this.outerHeight(false)));”
This is the original file:
[PHP];(function( $ ){$.fn.affixmenu = function() {
return this.each(function(){
var $this = $(this),
lastpos = $(window).scrollTop(),
update = function(){//ignore when offcanvas open => leave unchanged
if($(document.body).hasClass(‘off-canvas-right’) || $(document.body).hasClass(‘off-canvas-left’)){
return false;
}var top = ($this.hasClass(‘affix’) && $this.prev(‘.hplace’).length > 0) ? $this.prev(‘.hplace’).offset().top : $this.offset().top,
scrolltop = $(window).scrollTop(),
elmheight = $this.outerHeight(true);if(scrolltop < lastpos && lastpos > top + elmheight){
if(!$this.hasClass(‘affix’)){
$(document.body).addClass(‘affixmenu-show’);
$this.addClass(‘affix’);$this.before($(‘<div class=”hplace clearfix”></div>’).css(‘height’, elmheight));
}} else if(scrolltop > lastpos || scrolltop < top) {
$this.removeClass(‘affix’).prevAll(‘.hplace’).remove();
$(document.body).removeClass(‘affixmenu-show’);
}lastpos = scrolltop;
}$(window).on(‘scroll resize’, update);
update();
})
}})(jQuery);[/PHP]
Sincerely,
AndréPankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
infib Friendinfib
- Join date:
- March 2014
- Posts:
- 17
- Downloads:
- 0
- Uploads:
- 8
- Thanks:
- 12
- Thanked:
- 1 times in 1 posts
June 26, 2014 at 10:38 am #540269Now you got a PM!
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
July 1, 2014 at 10:58 am #540790I am not quite sure what you have changed on your site. I got this error when I visit your site.
Fatal error: Cannot make non static method JRouter::encodeSegments() static in class DiscussRouter in /storage/content/10/195210/norrut.nu/public_html/components/com_easydiscuss/helpers/router.php on line 818
Please check and have this fixed. I will help you to check the margin on top then.
1 user says Thank You to Ninja Lead for this useful post
infib Friendinfib
- Join date:
- March 2014
- Posts:
- 17
- Downloads:
- 0
- Uploads:
- 8
- Thanks:
- 12
- Thanked:
- 1 times in 1 posts
July 1, 2014 at 9:19 pm #540876Hello Ninja Lead!
I just fixed the error!
Your sincerely,
André1 user says Thank You to infib for this useful post
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
infib Friendinfib
- Join date:
- March 2014
- Posts:
- 17
- Downloads:
- 0
- Uploads:
- 8
- Thanks:
- 12
- Thanked:
- 1 times in 1 posts
July 3, 2014 at 1:32 am #541004Hello again Ninja Lead!
I just mean I fixed the error you talked about! Not the “Too long margin on top of the website”- issue! 🙂
Your sincerely,
AndréSaguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 3, 2014 at 4:09 am #541018Hi André,
Do you mean this space: http://prntscr.com/3yw08v? For instance, in About page: http://www.norrut.nu/about
It’s padding of main body, you can override this value by adding following css rule into the /templates/ja_appolio/css/custom.css file:
.t3-mainbody {
padding-top: /*your_desired_value_goes_here*/;
}
1 user says Thank You to Saguaros for this useful post
infib Friendinfib
- Join date:
- March 2014
- Posts:
- 17
- Downloads:
- 0
- Uploads:
- 8
- Thanks:
- 12
- Thanked:
- 1 times in 1 posts
July 3, 2014 at 10:34 am #541066Hello!
Thanks for your really quick answer!
I didn’t found any “custom.css”- file in the entire template map!But in the Template.css file I found following code:
[PHP].t3-mainbody {
padding-bottom: 40px;
padding-top: 40px;
}[/PHP]I changed it, but it but nothing happened!
Your sincerely,
Andréinfib Friendinfib
- Join date:
- March 2014
- Posts:
- 17
- Downloads:
- 0
- Uploads:
- 8
- Thanks:
- 12
- Thanked:
- 1 times in 1 posts
July 3, 2014 at 1:17 pm #541079AuthorPostsThis topic contains 16 replies, has 5 voices, and was last updated by TomC 10 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum