Anchor + Scroll problem when linked to anchor from flatbox

Hi,
I have a onepage site, with onepage turned on because of smooth scrolling.
Everything works nicely accept when I link to a local link from a flatbox. Then the smooth scrolling is gone.
I know about the class="scroll" but where do I put it in a component like flatbox?

Thanx in advance

Comments

  • Hello,
    In this case, you should insert the shortcode of the flatbox inside the column item with class 'scroll' applied.
    Thanks
  • edited July 2020
    Ok, I tried this before but I added a second flatbox, now with shortcode like this:

    [flat_box icon="icon-lamp" background="" image="[Links visible only for registered users]" title="Food<br>Photography" link="#food" target="" animate="" class="scroll"]
    Here comes the content
    [/flat_box]

    As you can see at this page [Links visible only for registered users] the second flatbox (Foodphotography)  is with shortcode, but still no smooth scroll.

  • Okay, I do understand now.
    You cannot attach an ID into the flatbox or column item, but you can add an div container with id there.
    See the screenshot to understand:

    Also, remember to add "scroll" class into the link with href="#food"
    Thanks
  • I didn't mean to LINK TO the flatbox, I meant LINKING FROM the flatbox to the component with #food.
    So that the scroll effect would function from the mainmenu  entry "FOOD" as well as from the flatbox.
    But you triggered me with the div surrounding the flatbox shortcode. I just puit an href around the flatbox with class="scroll". That does work, in contrast to adding class="scroll" to the flatbox shortcode as far as I can see.

  • Well, it was misunderstanding, sorry, but your question is resolved, right?
    If you have some other questions, feel free to ask :)
    Thanks
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.