Problems with Anchor and Div
-
Hello!
I have an Info button on top of a carousel that should send me to a Div with an Id.
That Info button has an anchor and when pressed, it lowers you down but stays on a white page and gives me an error.
https://www.carlosadalid.com/tercera
This is the error message it gives me in inspect mode. I don't know if it will help.
Any solution?Thanks!!
-
-
The custom code it's the following one:
<p><span style="color: #000000;"><a style="color: #000000;" href="#info-tercera" data-id="0">Info</a></span></p>
It's the source code of carousel's image caption. The problem that I found it's that the caption it's linking to "https://www.carlosadalid.com/tercera#info-tercera" when it have to been linking to "https://www.carlosadalid.com/#info-tercera".
If fix the problem it's not possible, there's another way to link to the page's bottom?
Thanks.
-
-
Hi @mariusjopen
I'm using the carrousel plugin.I want to put a text / Info button with an anchor to send me to the bottom of the page, just that.
Any suggestions in case my problem cannot be solved?
Thanks!! -
Dear @carlosadalid
what is the div called to which you want to scroll? Do you use the id or the name?Best!
Marius
-
Hi @mariusjopen!
The code of caption is "<p> <span style =" color: # 000000; "> <a style="color: #000000;" href="#info" data-id="0"> Information </ a> </span> </p>" and the info is "id info" is: info
I think the problem is that when you press "info" the anchor that goes down to the "div" is done well, but the "div" shows a blank page above that does not reveal the content.
Can you try to visualize the error in your browser?(https://www.carlosadalid.com/tercera and click on info) I think it's easier to see it than to explain it hahaha
Many thanks!
-
Also see this topic.
This seems to be an issue thatβs related to one of the recent updates, because this worked perfectly fine a while ago.
-
@edgrbnz said in Problems with Anchor and Div:
This seems to be an issue thatβs related to one of the recent updates, because this worked perfectly fine a while ago.
Thanks for the reply! Did you find any solution to the problem?
-
No nothing yetβ¦
@mariusjopen or @arminunruh might need to have a look at this I guess. -
-
I need to solve the problem... :(
-
Hi @mariusjopen & @arminunruh,
we are having the same problem. Is there any possibility to deal with it?
http://karwendelmusik.de -
Ok will be fixed in the next update, I will release it later today!
-
@arminunruh great. Thanks a lot!
-
Sweet!!!
-
Many thanks!! πππ
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options β Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it