Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • infib Friend
    #199104

    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!

    Sincerely André


    1. margin-ja-appolio
    Pankaj Sharma Moderator
    #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 try

    infib Friend
    #540017

    Hi, 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é


    1. margin-2
    Pankaj Sharma Moderator
    #540090

    Its 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 Friend
    #540122

    Hi 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 Moderator
    #540144

    Can you PM me the FTP details of your site so that i can check it directly on your site .

    infib Friend
    #540269

    Now you got a PM!

    Pankaj Sharma Moderator
    #540639

    HI
    i forwarded the issue to our development department for further investigation .
    They will check the issue and reply you here .
    Thanks in advance for patience 🙂

    Ninja Lead Moderator
    #540790

    I 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.

    infib Friend
    #540876

    Hello Ninja Lead!

    I just fixed the error!

    Your sincerely,
    André

    Ninja Lead Moderator
    #540900

    Awesome! Glad to hear that. If you have additional question, you can submit in a new thread, our team will help you out.

    infib Friend
    #541004

    Hello 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 Moderator
    #541018

    Hi 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*/;
    }

    infib Friend
    #541066

    Hello!

    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 Friend
    #541079

    Hello again,

    Has this something to do with it?

    Your sincerely,
    André


    1. margin
Viewing 15 posts - 1 through 15 (of 16 total)

This 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