- March 22, 2019 at 1:44 pm #213030
I have several obstacles with “Portum”, that I try to solve. My site looks a mess right now, so pls ignore the design at this point 🙂
Here’s my issue I hope I get a solution for:
I tried to set a link from a page to a section of the frontpage. I looked into the source-code to find the ID to build a link like https://mydomain.com/#anchor.
Here’s a code snippet:
<section data-customizer-section-id="portum_repeatable_section" data-section="6" data-customizer-section-string-id="contact">
I tried it with https://the-cats-pyjamas.ch/#contact, but with this the button did not work/react
I found another code beneith the one above:
<div id="contact-754494" class="section-contact section ewf-section ewf-section-visible ewf-text-align--left ewf-section--title-left">
I tried it then with https://the-cats-pyjamas.ch/#contact-754494, but this opened the frontpage (on top, not at the section “contact”).
Hope someone can help me with that, I’d love to add these anchors to the menu too.March 25, 2019 at 11:45 am #213515
I hope you are doing well today.
I just want to confirm, are you trying to change the anchor links on the page?
SupportMarch 25, 2019 at 12:27 pm #213521
Change… where can I set them for “Contact Section” and “Blog Posts”? These seem to be the ONLY two sections where I cannot set a Section ID. That’s why I asked if I can find the section ID somewhere in the source code.
Attachments:March 26, 2019 at 5:47 am #213685
Sections are not using IDs they have unique HTML tag and you can’t change them or use anywhere, unfortunately this is how theme is coded and without major customization you cant change this ruleMarch 26, 2019 at 6:25 am #213687
Interesting answer! The only section where no section ID can be set in the Customizer are Blog Posts and Contact. That‘s probably the reason, why a Github Issue for enhancement has been opened yesterday 😉
I mean… of all things that someone would want to link to (from a menu, within a post) are the contact sheet and the newest posts. Pretty weird, that these are the only sections I cannot do that and I‘m not putting up a second contact sheet.
But I am confident, that the enhancement of adding a field into the customizer for a section id to contact and blog too is being realized. Thanks again to Mihaela who was very helpful with all my questions!March 26, 2019 at 6:47 am #213692
😉 i guess we are talking about different ID’s, yes IDs can be set from the customizer but on the frontend, they do not default HTML tags, we use custom tags for ID’s and that’s what i meant if you use dev tools of browser you will see what i mean… perhaps this is lack of my attention, i should mention this in my previous reply 🙂
lastly, is your question already addressed? 🙂March 26, 2019 at 12:45 pm #213774
never mind… there ARE no section ID’s in the customizer for “Blog Posts” and “Contact” (see printscreens attached).
That’s why a Github issue has been opened (https://github.com/MachoThemes/portum/issues/222) for an enhancement of the customizer of Potrum.
The issue has been solved at https://wordpress.org/support/topic/anchor-of-the-sections-on-frontpage/
- This reply was modified 3 months, 3 weeks ago by swisselle.
Attachments:March 27, 2019 at 5:22 am #213874
thank you for understanding and thank you for sharing solution 🙂
The topic ‘Looking for anchors of sections on Frontpage’ is closed to new replies.