Can I change the aThemes Posts button URL?

Hi,

I looking for a way to change the button URL for aThemes Posts element. In this moment, the button is redirecting to Events list but I want to use a custom page.

Is it possible?

Hello there,

Do you have a link to share here, so I could inspect if there’s a code we can use to alter that URL?

Regards,
Kharis

The website is here: http://wordpress.barbera-agliano.com/

In the news section, I added the aTheme Posts element.

Hello there,

Thank you for sharing.

In order to accomplish it, the easiest way you can do is below:

  1. Install and activate the TC Custom JavaScript plugin
  2. Go To Appearance > Custom JavaScript
  3. Paste the following code into the provided box
    ;(function($) {

      'use strict'

      var newsBtn = $('.elementor-widget-athemes-posts .more-button');

      if( newsBtn.length ) {
        var url = 'http://yoursite.com/custom-link';
        newsBtn.attr('href', url);
      }

    })(jQuery);
  1. Update

Regards,
Kharis

Thanks! It’s working perfectly

You’re welcome!

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Regards,
Kharis