Names of the projects in the next/prev project
-
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
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it