Ethos post slider button renaming

Hi,
I would like to change the text on the post slider in ethos. I have a JS snippet, but I don’t know how to substitute the link so that it is always the correct one for the given post.

My snippet is like this:

jQuery(document).ready(function($){
var link = “[What do I have to put here]”;
$(’.x-post-slider .featured-view’).html(“Tovább”).wrap(’’);
});

thanks for the help

Hey @devidrake,

Please try to use this code in the Global JS:

jQuery('.x-post-slider-entry .featured-view').text('Tovább');

This code will change the text View Post to Tovább.

As for the link, would you mind clarifying what link you want to change? Do you want to specify the link to each post slider? Kindly provide us more information so that we’ll be able to provide some suggestions.

Hope this helps.

Thank you for your reply. I would like to link to still go to the respective post on the slider.

Hey @devidrake,

Thank you for updating the thread. The code provided above will only change the slider button’s text but the link will still go to the respective post. You can add the code in the Theme Options > JS:

jQuery(document).ready(function($){
	$('.x-post-slider-entry .featured-view').text('Tovább');
});

Don’t forget to clear all caches including your browser’s cache after adding the code. Let us know how this goes!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.