Jump to content

Archived

This topic is now archived and is closed to further replies.

Johan

Change link text in iBox

Recommended Posts

Johan

Hi,

How can i change the link text "More >" in a iBox?

Share this post


Link to post
Share on other sites
Danny

Hi,

You can either use jQuery or edit the sections core code. I would suggest the jQuery method, as you won't have to mess about creating a child section via a child theme.

To use the jQuery method, use the following code:

<script>
  jQuery(document).ready(function() {
    jQuery('.continue_reading_link a').text('Need more Cowbell');
  })
</script>

Replace the .continue_reading_link a with the iBox Read more class name and then replace Need more Cowbell with your preferred text.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Johan

Hi,

You can either use jQuery or edit the sections core code. I would suggest the jQuery method, as you won't have to mess about creating a child section via a child theme.

To use the jQuery method, use the following code:

<script>
  jQuery(document).ready(function() {
    jQuery('.continue_reading_link a').text('Need more Cowbell');
  })
</script>

Replace the .continue_reading_link a with the iBox Read more class name and then replace Need more Cowbell with your preferred text.

Hi,

I added this code to "Custom Scripts" but nothing happened.

<script>
  jQuery(document).ready(function() {
    jQuery('.ibox-link').text('Läs mer');
  })
</script>

http://ysutv.yellowsolution.se/

Share this post


Link to post
Share on other sites
Johan

Hi,

I added this code to "Custom Scripts" but nothing happened.

<script>
  jQuery(document).ready(function() {
    jQuery('.ibox-link').text('Läs mer');
  })
</script>

http://ysutv.yellowsolution.se/

Hi,

You can either use jQuery or edit the sections core code. I would suggest the jQuery method, as you won't have to mess about creating a child section via a child theme.

To use the jQuery method, use the following code:

<script>
  jQuery(document).ready(function() {
    jQuery('.continue_reading_link a').text('Need more Cowbell');
  })
</script>

Replace the .continue_reading_link a with the iBox Read more class name and then replace Need more Cowbell with your preferred text.

Hi again,

Now is the text updated to "Läs mer" but the link is not there.

 

Share this post


Link to post
Share on other sites
Danny

Can you provide a link to the site in question.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

×