0
I am developing a wordpress template, and it has the following dynamic, is a one page site, ie anchored. In the menu I call the pages that are anchored from one page, but in the menu I also call pages that are paged, these I programmed to be created in wordpress, through the page.php.
The problem is following, when I open site, in the initial part, I can make the menu items that lead to the anchored pages work normally. Ex: I click on Contact in the Menu, the page descends slowly until the part of One Page where the Contact is. This is working perfectly when I open the site initially. When I click on services, the website goes to the services page (leaving One Page). It’s okay, but when I click on Contact again to go back to the One Page and go to Contacts, and it can’t come back, it’s like now it’s trying to do One page on the Services page.
The menu I programmed too, to be created in Wordpress.
I need to do this, a Onepage site but also a paged site. No problem going back and forth from the pages to the anchors.
Have tried something like "urlIndex#onepage" on link *(so html knows it has 1 go to urlindex page and onepage anchor?
– Bartolomeu S. Gusella
So, my Menu is as follows. I programmed it to be done in wordpress. I made my menu items as for example: Services (Calls the page created in wordpress), and has Contact (This I created a custom link that is "#contact", which works only when it is on onepage, in "index.php").
– Wess
So if putting the contact link as "index.php#contact" does not work ?
– Bartolomeu S. Gusella
tries to use the
site_url("#ancora")
in the menu, where it needs to be anchored andsite_url("nome_da_pagina")
where is page– Daniel Costa
But should I put this in the custom wordpress link URL?? I tried to put index.php#contact but it didn’t work @Bartolomeu
– Wess