Skip Navigation

[Resolved] CSS is not working and being over written

This support ticket is created 5 years, 3 months ago. 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 9 replies, has 2 voices.

Last updated by Luo Yang 5 years, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#1373529

I am trying to:CSS in Views

Link to a page where the issue can be seen:

I expected to see:hidden link

Instead, I got: hidden link

Please see this video hidden link

#1373691

Hello,

Thanks for the video, I can see the difference in the URLs you mentioned above.

And I have tried the credentials you provided above, but it isn't an valid admin account, so can not check views setting, please check it, make sure it is a valid administrator account.

And you can try with Views API function render_view() to render views instead of do_shortcode, see our document:
https://toolset.com/documentation/programmer-reference/views-api/#render_view
Renders a View and returns the HTML output.

#1373839

Sorry. I just fixed it. Let me look into this and see if I can get it to work.

#1373951

I can't figure this out. Is there any way to completely disable CSS for this view?

#1374405

There isn't such kind of built-in feature, you might consider one of below options:
1) Remove all CSS codes from that specific view.
2) Try with custom PHP codes, for example:

add_filter( 'wpv_filter_get_meta_html_extra_css', function($views_extra_css){
	global $WP_Views;
	if($WP_Views->current_view == 123){
		$views_extra_css = '';
	}
	return $views_extra_css;
}, 99 );

Please replace 123 with your specific view's ID.

#1374629

Where would be the appropriate area to put this?

Thanks!

#1375229

You can put those custom codes into your theme file "functions.php", and test again.

#1375239

I tried this and it didn't work. You can try. This account is a test server

#1375247

I have tried the credentials you provided in:
https://toolset.com/forums/topic/css-is-not-working-and-being-over-written/#post-1373529

I got this error:
ERROR: The password you entered for the username toolset is incorrect

Please check it, make sure it is a valid administrator account.
https://toolset.com/forums/topic/css-is-not-working-and-being-over-written/#post-1373691

#1375361
#1376075

I have tried to edit your theme file "functions.php" in WordPress admin side, it can not save any change, so can not test and debug the custom PHP codes in your website, please provide the copy of your website in below private message box:
https://toolset.com/faq/provide-supporters-copy-site/

You can put the duplicator package in your own google drive disk, and share the link.