Onepage wordpress template but also paged

Asked

Viewed 54 times

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?

  • 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").

  • So if putting the contact link as "index.php#contact" does not work ?

  • tries to use the site_url("#ancora")in the menu, where it needs to be anchored and site_url("nome_da_pagina") where is page

  • But should I put this in the custom wordpress link URL?? I tried to put index.php#contact but it didn’t work @Bartolomeu

1 answer

0


I was able to solve the problem by installing a plugin.

  • Page Links To, this plugin gives me the option to change the URL of my pages and posts. So I create the pages, and through the URL I define if they will be part of the anchored Onepage or if they are paged.

I finish by calling the pages created normally in the Wordpress Menu.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.