Names of the projects in the next/prev project
-
-
-
Dear @joackim
Would you like the Project Title to be a clickable link on the Left and right side of the page?
Just wish to understand better
Best
Richard -
Dear @joackim
This is possible to do but must be done for each project page with the use of text.
Create a "left text of your choosing" and a "right text of your choosing" on the project page and give it a "custom ID"

With this "ID" you can target it with Custom CSS e.g:
#exampletitle { position:fixed }and additionally decide how high/low you wish to have it vertically on your site.
For additional CSS help:
https://www.khanacademy.org/computing/computer-programming/html-css
Once the link has its own ID you can add CSS to your liking.
Let me know :)
Best Wishes
SincerelyRichard
-
Dear @Richard-Keith,
Thank you for your answer.
I don't want to do it for each project because I use the next/prev text buttons in a specific footer for projects.
I want to add the name dynamically with php or something like that.
As you can see in the code, the name of the next and previous projects are in data-title... I want to use this variable for the next and previous text.
Kind regards,
Joackim
-
-
-
-
Dear @joackim
In "Custom HTML at bottom" in "Lay Options" - "Custom HTML & CSS"
Creating a link with the either the class name "layprevproject" or "laynextproject" automatically fetches the data we are looking for:

This way you are able to create your own Next/Prev Links that operate in the same manner, the data content is there:

The information we need is produced.
I have added an extra "id" to the <a> for better targeting,Now we can target this "NXT" button and change the text within using:
https://stackoverflow.com/questions/901909/change-html-text-from-link-with-jquery
Try this out as i hope it sets you in the right direction,
Also we must change the "$" to "jQuery" in order for this to work properly
Good luck & thank you using Lay Theme! :)
SincerelyRichard
-
dear @Richard-K ,
i have the same need as joackim.
I state that I am not a jquery expert.
i tried to insert the jquery string in the head but i didn't get any good results.
could you write me the correct syntax to have the data-title instead of the prev / next text?
thanks
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login