• Resolved berlinger4378berlin

    (@berlinger4378berlin)


    hi there, post grid widget so far so good, but miss the option to open post in a new tab after click on an item (title, read more) in the grid. how woul i do this. thanks for advice!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author WP Royal

    (@wproyal)

    Hi,

    There is no such option at this time but we will implement it soon.

    We have custom JS code for you:

    jQuery(document).ready(function( $ ){
    	
    				$('.wpr-grid-item-title a').each(function() {
    					$(this).attr('target', '_blank');
    				});
    	
    				$('.wpr-grid-item-read-more a').each(function() {
    					$(this).attr('target', '_blank');
    				});
    	
    });

    You need to install “Simple Custom CSS and JS” plugin and add this cutom JS code via it – Title and read more links will open in a new tab after this.

    Kind Regards,
    Nick

    Thread Starter berlinger4378berlin

    (@berlinger4378berlin)

    thanx! this one works for me for now. looking forward to implementation.

    Thread Starter berlinger4378berlin

    (@berlinger4378berlin)

    Hi Nick,

    unfortunataly after a couple of days the js has no effect anymore.
    Do you have an idea to solve the problem?

    Best and thanx,
    Alex


    WP 5.9.3
    Elementor v3.7.0-dev6
    Elementor Pro v3.8.0-dev8
    Elementor Beta (Developer Edition) 1.1.1

    Plugin Author WP Royal

    (@wproyal)

    Hi,

    It’s weird, please try to clean your browser & wp-cache, then make sure that in Simple Custom CSS plugin code we have inserted is activated. I have no other ideas why it can’t work – can you please remember the last changes you made?

    Kind Regards,
    Nick

    Thread Starter berlinger4378berlin

    (@berlinger4378berlin)

    …yes weird, al caches cleanud up, custom js activated, no longer works….

    Plugin Author WP Royal

    (@wproyal)

    can you please remember the last changes you made?

    Thread Starter berlinger4378berlin

    (@berlinger4378berlin)

    unfortunately, i can’t reproduce that anymore, i have changed settings in some places. definitely, however, i can state that regarding my other topic (https://www.ads-software.com/support/topic/post-grid-category-flags/), the settings of the pagetransitions change the effectiveness of the js. page transitions none=js works, pagestransitions fade in=js doesn’t work.
    the js to open the links from title, post picture, readmore in a new tab unfortunately definitely doesn’t work at all anymore.

    Plugin Author WP Royal

    (@wproyal)

    As it seems because of the page transitions being a beta feature of elementor it is not compatible with custom CSS & JS plugin so in this case, we can’t provide any help for now, hope elementor will fix this problem in the near future.

    You can try to use other Custom CSS/JS plugins, maybe they will work with elementor experimental feature.

    Kind Regards,
    Nick

    • This reply was modified 2 years, 6 months ago by WP Royal.
    Thread Starter berlinger4378berlin

    (@berlinger4378berlin)

    Hi Nick,

    very strange, because it worked already. now all experimental beta features like page transitions are disabled. js for opening a new tab still doesn’t work again. the js for disabeling of the category elements in the post grid still works.
    can’t you solve this new tab thing after all? would be so great.
    regardless, wouldn’t it be an optimal standard feature in the post grid to optionally open links in a new window? in the standard elementor post grid this is possible (incl. no follow option).

    best regards,
    Alex

    Thread Starter berlinger4378berlin

    (@berlinger4378berlin)

    ..reinstalled elemnentor beta and all experimental features – weird: now the js works again.

    best
    Alex

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘open new tab in post grid’ is closed to new replies.