Forum Replies Created
-
AuthorReplies
-
Jason Bobich
KeymasterHi,
There are several different ways to accomplish this.
Option 1: Here’s one way you can do it with just one line in your functions.php, and using the framework:
themeblvd_remove_stylesheet('owl_carousel');
Option 2: Or, I’m assuming you also want to de-enqueue the JS file as, well. This can be done by filtering the framework’s global config.
function my_global_config( $config ) { $config['assets']['owl_carousel'] = false; return $config; } add_filter('themeblvd_global_config', 'my_global_config');
Now, the CSS and JS file won’t be included. — And chances are if you’re going to the extent to do this, there’s probably other assets you want to not include, as well. You can find where this filter is applied at /framework/includes/general.php and extend this method.
function my_global_config( $config ) { $config['assets']['flexslider'] = false; $config['assets']['isotope'] = false; $config['assets']['owl_carousel'] = false; // etc... return $config; } add_filter('themeblvd_global_config', 'my_global_config');
http://dev.themeblvd.com/tutorial/removing-framework-scripts/
Option 3: And if you’re looking to do it in the more traditional way, you should (1) hook to wp_enqueue_scripts (wp_print_styles is deprecated and wp_enqueue_scripts hook is now meant to be used for all CSS and JS files), (2) use
wp_deregister_style()
and (3) make sure you’re using the correct handle.On the third point, if you see this printed in your site:
<link rel='stylesheet' id='owl-carousel-css' href='http://yoursite.com/wp-content/themes/jumpstart/framework/assets/plugins/owl-carousel/owl.carousel.min.css?ver=2.0.0-beta.2.4' type='text/css' media='all' />
The registered handle with WordPress will be that HTML ID minus the “-css” at the end. So, that’s how you would know to do this:
function my_dequeue_scripts() { wp_deregister_style('owl-carousel'); wp_deregister_script('owl-carousel'); } add_action('wp_enqueue_scripts', 'my_dequeue_scripts');
Jason Bobich
KeymasterHi,
Apologies, but there is no feature for this. However, I understand the basic need you’re trying to fulfill and has been on my mind for quite awhile, actually.
https://github.com/themeblvd/theme-blvd-layout-builder/issues/12
Jason Bobich
KeymasterI’m not sure how long I will leave it up for, but it won’t be here forever. I’d try to get any information you need in preparation for it to be gone.
Over time, I will be adding articles and FAQ’s based on my experiences with support to new docs.themeblvd.com (for users), that was created last weekend. And I will also continue to grow dev.themeblvd.com and make it better.
May 31, 2016 at 5:59 pm in reply to: Issues with mobile menu and mobile header on upgrade to 2.1 #26175Jason Bobich
KeymasterI just had a random idea about this and checked the source of your site, and can see you’re using a caching plugin for the frontend markup of your site. Is it possible after you updated the theme before and updated your Theme Options page, that you didn’t fully clear your cache afterwards? That could be an explanation for all of this, if that were the case.
May 31, 2016 at 4:39 pm in reply to: Issues with mobile menu and mobile header on upgrade to 2.1 #26174Jason Bobich
KeymasterAlso, this is probably a given, but you haven’t done anything in your child theme with functions that control the logo, right?
And I didn’t see anything in the style.css you pasted that caught my attention to the issue, which makes me think there’s some simple answer to all this. What that is just yet, I don’t know. Need to see the issue. 😉
May 31, 2016 at 4:34 pm in reply to: Issues with mobile menu and mobile header on upgrade to 2.1 #26173Jason Bobich
KeymasterI bet more than likely I can tell you the issue within minutes of seeing your site, but I need to be able to see the issue.
You don’t need to mess around with a bunch of settings. Simply update the theme and make sure all three logo options are filled in and saved. Then link me to your site.
I can tell you I’ve had about 5-6 people tell me the same thing you did originally and in all cases the issue was because they didn’t know there was a new logo option to fill. That solved it for all of them.
Jason Bobich
KeymasterSo then you want to use the first method I described of working with content-mini-list.php.
Jason Bobich
KeymasterHi Sarah,
These images are styled this way so that the title of the page can display on top. But of course, you can always change anything like this through basic CSS customization.
For CSS changes, it’s a good idea to use a tool like firebug or Google Chrome’s built-in developer tools to locate them and then put the edits either in your child theme‘s style.css or in the “Custom CSS” option on your theme options page.
.epic-thumb.fw img { opacity: 1; }
Jason Bobich
KeymasterHi,
Apologies for the confusion. This was caused by our recent move of wpjumpstart.com to a new server.
To fix the issue, go to Appearance > Theme License in your WordPress admin, and delete your current licence key. Then, add it again and reactivate. This should establish fresh connection with our servers.
Let me know if this does not work for you.
May 29, 2016 at 11:19 pm in reply to: Applying full width featured images to custom post types #26163Jason Bobich
KeymasterJason Bobich
KeymasterSo there’s no feature in the theme for what you’re wanting to do and would only be possible through your own javascript customizations. Look at /assets/js/theme.js of the theme, lines 118-169. You’d have to come up with javascript that performs this action, which is triggered upon clicking the menu items.
But with that said, you may want to wait until the next version of Denali comes out, v1.1. I’ve simplified this immensely. After the next update you’ll simply need to target the
<body>
with your javascript and toggle between the CSS classesmobile-menu-right-on
andmobile-menu-right-off
.Jason Bobich
KeymasterHi,
These classes are generated with the WordPress function
post_class()
.https://codex.wordpress.org/Function_Reference/post_class
If you copy content-mini-list.php, you’ll see there’s a
$class
variable at the top you can add to.Or, you can target it by filtering from your child theme’s functions.php.
https://codex.wordpress.org/Function_Reference/post_class#Add_Classes_By_Filters
Jason Bobich
KeymasterWhere are you getting the CSS class “themeblvd_header_addon” from? When you’re trying to build a selector for making a CSS customization, you want to use your web browser’s inspector and look at the HTML markup. I can’t tell you what that is because I have no idea what you’ve added to your site at that action hook.
Jason Bobich
KeymasterAny CSS you add will always go in your child theme style.css, no matter what area of the site you’re targeting.
Jason Bobich
KeymasterYou figured it out! What was the issue?
-
AuthorReplies