1
ghia
xSimplegrid
  • 2018/2/10 8:06

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


I'm using xSimpleGrid for a website and I have a problem with anchors (local or page links eg. https://xoops.org/modules/newbb/viewtopic.php?post_id=363459#363459 ).
Just like the theme here on xoops.org it contains a fixed header on top of the page with logo, menu, etc.
The content scrolls under and you can see it in low intensity passing under.

My problem with these page links as in the above example, is that the browser aligns the anchor on the top of the window and as such the first part get hidden under this fixed header.
Users don't see the relevant content at all or must scroll up to read it.

You see it here also when you click on a local link of a post from the forum.

Is there a way to get the content aligned to under the bottom of the header?

2
Mamba
Re: xSimplegrid
  • 2018/2/10 10:19

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


I don't know how the menu header in xSimpleGrid works, but if I remember correctly, in xBootstrap, we manipulated it with "offset" in the headhesive.js

Check out xBootstrap, or the original Headhesive: https://github.com/markgoodyear/headhesive.js/tree/master

and see if it can help...
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

3
ghia
Re: xSimplegrid
  • 2018/2/10 13:01

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


No, xBootstrap is not used in xSimple.

(But here on xoops.org, the offset seems also not set.)

4
Mamba
Re: xSimplegrid
  • 2018/2/10 14:24

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


I know that it's not used, I was only suggesting that maybe you could use a similar approach as in xBootstrap.

Sorry, I couldn't be of more help...

Maybe Bleekk can help....
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

5
Mamba
Re: xSimplegrid
  • 2018/2/10 15:35

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


FYI - I've tried to replicate that but I couldn't . In my case it went directly to the first post in the thread.
But I was using the upcoming NewBB 5.0 Alpha on XOOPS 2.5.9 and PHP 7.2.2, so maybe this was the reason.
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

6
ghia
Re: xSimplegrid
  • 2018/2/10 16:32

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


To replicate, click here in this thread in second post on #2

7
goffy
Re: xSimplegrid
  • 2018/2/10 17:54

  • goffy

  • Just can't stay away

  • Posts: 543

  • Since: 2010/12/27


Hi

you have 2 possibilities:
1) add a margin before each posting with the same height as your menu. This is not beautiful, but simple
2) add a js for scrolling. search for a code where you can set scroll speed, offset,...
e.g.
$('html, body').animate({scrollTop: $('#contact').offset().top -100 }, 'slow');

8
brutalicuss
Re: xSimplegrid

Hi ghia, I dont understand very well your question (my pretty eng haha), but I guess that you mean that header height is too big and hidding the content. If Im right, you can see how I did "fix" it in one of my production site with xsimplegrid theme

If you want, send me (u can PM also) your site, poin me hte problems and Ill surely help you :)
Also, you sould use for 2.5.8/2.5.9 right theme, look at http://www.eunion.info/xoops/xsimplegrid/

Regards!

9
Mamba
Re: xSimplegrid
  • 2018/2/11 10:30

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Brutalicuss, you'll need to submit your changes to the themes via a Pull Request on GitHub

I have updated the xSimpleGrid with your version 1.2:
https://github.com/xoopsthemes/xsimplegrid

and the xSimpleBlocks to 1.1.4
https://github.com/XoopsThemes/xsimpleblocks
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

10
brutalicuss
Re: xSimplegrid

Yes I will. But first I must to make changes in xsimplegrid version with "hidding" header and footer and will upload these days :)

Login

Who's Online

282 user(s) are online (70 user(s) are browsing Support Forums)


Members: 0


Guests: 282


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits