You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP: 8.2.11
Joomla: 4.4.0 Stable [ Pamoja ] 17-October-2023 16:00 GMT
Gantry5: 5.5.17 (gantry5 presets is not enabled)
Theme: Helium (v5.5.17 / g5_helium)
I'm trying to enable pagination/navigation between articles with the same keywords (i.e. story/blog etc). While I have the process working the visual output is LESS than desirable as all I get is: "Next >"
The easy answer is to go to the page settings, add a new javascript entry, paste in the following code, check the box "</body>" so you don't have to manage the onload/onready events.
var elem = document.getElementsByClassName("btn next")[0];
if (typeof elem !== 'undefined')
{
elem.classList.remove("next");
elem.classList.remove("btn");
elem.classList.remove("btn-sm");
elem.classList.add("button");
console.log("done with next!");
}
var elem = document.getElementsByClassName("btn previous")[0];
if (typeof elem !== 'undefined')
{
elem.classList.remove("next");
elem.classList.remove("btn");
elem.classList.remove("btn-sm");
elem.classList.add("button");
console.log("done with prev!");
}
PHP: 8.2.11
Joomla: 4.4.0 Stable [ Pamoja ] 17-October-2023 16:00 GMT
Gantry5: 5.5.17 (gantry5 presets is not enabled)
Theme: Helium (v5.5.17 / g5_helium)
I'm trying to enable pagination/navigation between articles with the same keywords (i.e. story/blog etc). While I have the process working the visual output is LESS than desirable as all I get is: "Next >"
When I inspect the code I get:
This can be fixed by replacing all the classes with "button" like this:
or even remove the class "next" to kill off the chevron.
My question is this: How/Where do I make this change?
(I can't find it anywhere!)
The text was updated successfully, but these errors were encountered: