Problems with navigation with absolute links and shortcode adding p tags
-
Hello, first of all thanks for the plugins and support given to others it’s helped me a bunch already.
So, I’ve been having trouble with getting the plugin to work correctly on this website I’ve been developing (theme used is astra).
I’d like to point out that I have found ways to make it usable (with the help of this support forum and tutorials), but the root of the problem is not yet solved, so I probably need some assistance.Here’s the two problems I’ve encountered (maybe not to be solved in this order)
Problem #1: Highlighted menu items (when scrolling through the page) only showed up directly upon opening the site’s url when I was using the relative paths, for example (#contacto as opposed to https://visaoplus.pt/#contacto), when I changed it to absolute paths (to make sure those links still worked when accessing through another page) and after making adjustments in the stylesheet so that they weren’t all highlighted, they only show up when clicking any of the menu items of the front page (or when the url is for ex. https://visaoplus.pt/?#contacto). Yes, for some reason the “?” is always added when clicking a menu item. Could this be related to the problem?
Problem #1: I’m using the shortcode (with the gutenberg blocks) like the following example:
[ps2id_wrap id='contacto'] ...content... [/ps2id_wrap]For some reason this is adding empty
<p></p>tags in each of the sections that contain the shortcode. I ended up using this css rule to hide them. This worked fine whenever the “._mPS2id-t” class was active, so when the highlighting was working on scroll. At the moment, as stated before it only works when the url contains any of the hash, but not when seeing the site with the normal url (visaoplus.pt).div._mPS2id-t > p { display: none; }For this reason, so that there aren’t empty white spaces corresponding to the p tags, I had to add the following css rule as well.
#sobre >p, #produtos >p, #contacto >p { display: none; }Can you help figuring out what’s happening here?
Thank you so much.The page I need help with: [log in to see the link]
The topic ‘Problems with navigation with absolute links and shortcode adding p tags’ is closed to new replies.