open new tab in post grid
-
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!
-
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,
Nickthanx! this one works for me for now. looking forward to implementation.
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
—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…yes weird, al caches cleanud up, custom js activated, no longer works….
can you please remember the last changes you made?
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://wordpress.org/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.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 4 years ago by
WP Royal.
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..reinstalled elemnentor beta and all experimental features – weird: now the js works again.
best
Alex -
This reply was modified 4 years ago by
The topic ‘open new tab in post grid’ is closed to new replies.