Navigation überspringen

[Gelöst] Views is causing Themeco video to not play

This support ticket is created vor 2 Jahren, 4 Monaten. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 5 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von chrisC-25 vor 2 Jahren, 4 Monaten.

Assistiert von: Minesh.

Author
Artikel
#2470061

Hi,

I followed instructions in this post:
https://toolset.com/forums/topic/pro-by-themeco-toolset-blocks-issue/#post-1741585

and am still unable to get video to work. here is link:
versteckter Link

Here is added code:

add_action('wp_print_styles', 'ts_dequeue_styles', 1);
function ts_dequeue_styles()
{
    if ( is_page( array('kidzboptv', 'kidzbopplus') ) ) // Edit pages to exclude TS pagination styles
    {
        global $wp_styles;
        wp_dequeue_style('views-pagination-style');
    }
}
#2470305

Minesh
Supporter

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please share admin access details as well as share details about where you added the code you shared and let me review the settings and get back to you.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2473315

Minesh
Supporter

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

It does not seem to be Toolset issue as the cornerstone video field requires Embed code and you just added the video URL to it.
=> versteckter Link

Either you should upload the video you have to youtube.com and then get the embed code and add the embed code to the video field or you can use the following code:

<iframe width='640px' height='360px' src='<em><u>versteckter Link</u></em>' allowfullscreen></iframe>
#2473469

Thanks, that is actually not quite right. I have many sites using themeco and I only need to add the url. No need for full embed.

And, when I disable "Views" it works. So clearly there is a conflict with Views.

Thanks

#2474649

Minesh
Supporter

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

Could you please check now: versteckter Link

I've adjusted the code added to functions.php file as given under:

add_action('wp_print_styles', 'ts_dequeue_styles', 1);
function ts_dequeue_styles() {
    if ( is_page( array('kidzboptv', 'kidzbopplus') ) ) // Edit pages to exclude TS pagination styles
    {
           global $wp_styles;   
	  wp_dequeue_style('view_editor_gutenberg_frontend_assets');
	  wp_dequeue_style('views-pagination-style');
		
    }
}
#2474879

My issue is resolved now. Thank you!