Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle
Search Results for 'child theme'
-
AuthorSearch Results
-
In forum: Virtue Theme
Hi there,
I created a child theme for Virtue Premium using the code from the Topic: Is There An Official Kadence Premium Child Theme?
I then created a new style sheet based on the code provided in this topic however when I activated the child theme, my menu items didn’t show up. Why did this happen? Have I omitted to do something?
Jas
In forum: Virtue ThemeIn reply to: Google Analytics Code to Support Display Advertising
March 21, 2014 at 6:38 pm #6473I would use a plugin for this, yoast seo or any seo plugin really will allow you to use the script you want, if you leave the id empty in the theme options it will keep the analytics code from loading.
Using a plugin will make it so you don’t have to update this every time the theme updates.
And the file where the script is called can’t be copied into a child theme. And fyi the script is in lib/scripts.php
Ben
In forum: Virtue ThemeIn reply to: Problem with subcategory in breadcrumbs
Ok, so I see it sort it alphabetically. I would like to change sort order by category ID descending. Then subcategory always will be first to choose. Where in code can I do this?
I have already tried with this code in function.php of child theme:
function get_the_category_sort_by_id( $categories ) { usort($categories, '_usort_terms_by_ID'); arsort($categories); return $categories; }but it only changed sorting i section “posted in” on a page. In breadcrumbs nothing change.
Sebastian
In forum: Virtue ThemeIn reply to: Frontpage image instead of slider
We are using a childtheme of Virtue Premium, but maybe you can spot the CSS anyway?
It’s the greyscale image here:
http://www.burgerbar.dk/No padding/margin will also be relevant for the 4 banners, as they need to be placed in the content too (since they must be shown below the greyscale image)
Thanks,
MadsIn forum: Virtue ThemeIn reply to: Child theme and additional options css editor
March 17, 2014 at 5:13 pm #6319Yea really the only reason for a child theme is if you have a ton of css you want to add then it’s better to keep your database lite and store the css in a file or if you want to add functions or change template files.
Ben
In forum: Virtue ThemeIn reply to: Child theme and additional options css editor
OK
understan it right. there is no need for a child theme for css customization, but only if you like ti extend the functionality and you start to add code in the php files like function.php or something_else.php?
BTW thats really a smart solution to put this in the database.
Thanks
Josef
In forum: Virtue ThemeIn reply to: Child theme and additional options css editor
March 17, 2014 at 5:06 pm #6315The css in the theme options is stored in the database along with all your other theme options. Everything set in the theme options will override the child theme css unless you make your child theme css have a deeper css hierarchy.
If you have a version higher then 2.2 you can update just like you posted, and really you don’y have any need to activate the parent theme to update.
With each update the theme options will still be there.
Ben
In forum: Virtue ThemeI have crated a child theme for virtu_premium theme and activated. I made some tweaks in the additional options css editor in the child theme. but cannot find the file where the hacks are stored.
Ben can you please explain how the child theme customization works with your theme and your integrated tools in the admin site?
I’m looking to avoid to run in update issues.I expect to do an update in following steps:
1. activate the main theme
2. update the theme over the update functionality in the admin tool
3. activate the child theme
4. test the update with my siteThanks a lot
JosefIn forum: Virtue ThemeIn reply to: Category Filters not working
March 17, 2014 at 11:10 am #6304The filter are for products not categories, They are the categories and they filter the products.
The reason they are not showing on category pages is because you don’t have child categories for each category.
Here is an example: http://themes.kadencethemes.com/virtue-premium-3/
Check out the shop and category pages.
Ben
In forum: Virtue ThemeIn reply to: Replace Primary Header Nav with Widget
March 14, 2014 at 12:48 pm #6231No, you would need to create a child theme and add a widget area to the header.php file.
Ben
In forum: Virtue ThemeIn reply to: Hiding the shop page using groups
March 14, 2014 at 10:41 am #6211So rather then working in the template files just use a hook into the wp action. Add this to your child theme functions file:
function kad_header_hook() { if(is_shop()) { if ( class_exists( 'Groups_User' ) ) { $redirect = true; if ( $user_id = get_current_user_id() ) { $user = new Groups_User( $user_id ); if ( $user->can( 'groups_read_post' ) ) { $redirect = false; } } if ( $redirect ) { wp_redirect( get_bloginfo( 'home' ) ); } } } } add_action( 'wp', 'kad_header_hook');Ben
In forum: Virtue ThemeHi!
I would like to use images and not icons in the Primary Menu. Would I have to style the images as backgrounds in the CSS? I have the Virtue Child theme active, but I have not made any changes to that.
Here is a link: *Login to see link
Any help would be appreciated!
Chad
In forum: Virtue ThemeIn reply to: Some warning from woocomerce
Hi Sarah,
I’m not Ben, but I had this same issue.
I fixed it by using File Zilla to delete the old virtue_premium folder and then upload the new one I downloaded from the site.
You have to delete the old virtue_premium directory and not just override it. At least I had to.
I’m using a child theme so I didn’t have to worry about theme settings.
Hope that points you in the right direction while you wait for Ben.
-DominicIn forum: Virtue ThemeIn reply to: Full-width pages
March 12, 2014 at 1:24 am #6106Not sure whats up with the translation but the template position on your screen is: partnere
Did you make a page template in your child theme?
Ben
In forum: Virtue ThemeIn reply to: Full-width pages
That option isn’t there, http://imgur.com/Z0E1CM6 (none of the Danish translations match full-width)
Could it be because we are using a child theme?
Thanks,
MadsIn forum: Virtue ThemeSince updating, I am having difficulty cloning my site (which I use to create a duplicate site for testing and backup), using the cloning tool in my server’s CPanel control panel. I can’t recall if it started with 2.2.2 or 2.2.3, but the tool has always worked flawlessly in the past. But now it doesn’t completely clone the site – leaves behind header settings and logo, among other misc. theme settings and options. My service provider checked and said they can find nothing wrong on their end, and have successfully cloned other test sites on our server. FYI, I am using version 2.2.3, with child 1.4.1 as the active. They opened a support ticket with the App Vault vendor, but thought I would give you a shout, too.
In forum: Virtue ThemeI would like to not show the Woocommerce Category Sort pull down menu on my Product Category pages. I have the “Show Category Filter on Category Pages” set to No, and have also tried adding: remove_action( ‘woocommerce_before_shop_loop’, ‘woocommerce_catalog_ordering’, 30 ); line to the functions.php file of the Virtue Premium Child theme, both without effect – the filter still shows. Also note that I am not using a woocommerce products page per say – just Product Category menus and pages.
I did do a forum search here for this but didn’t see a solution – sorry if I’m duplicating, as it seems this would be a common request.
Thanks!In forum: Virtue ThemeIn reply to: Google AdWords tracking code
March 8, 2014 at 11:52 am #5889You can’t duplicate the scripts.php into a child theme because its not a template file. What you can do is write your own function, in the functions file in the child theme add the hook that called your script into the footer. Or use any seo plugin to add your script or a plugin that just does just the script. If you leave the Analytics Tracking ID in the theme options empty it won’t output the script.
Ben
In forum: Virtue ThemeTopic: Google AdWords tracking code
Hi Ben,
just checking before doing a lot of damage:
Google Analytics tells me to use a different script when activating Google Adwords tracking code on my site. I found the scripts.php from /lib-directory where the analytics script is visible
function kadence_google_analytics() { ?>
<script>
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
e.src=’//www.google-analytics.com/analytics.js’;
r.parentNode.insertBefore(e,r)}(window,document,’script’,’ga’));
ga(‘create’,'<?php echo GOOGLE_ANALYTICS_ID; ?>’);ga(‘send’,’pageview’);
</script>the script that I am advised to use is
<script>
(function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,’script’,’//www.google-analytics.com/analytics.js’,’ga’);
ga(‘create’, ‘GOOGLE_ANALYTICS_ID’, ‘domain.com’);
ga(‘send’, ‘pageview’);
</script>QUESTION: Should I alter the script.php accordingly? What happens when I’m updating the theme to a new version? Changes gone? I am using a child theme, can I use it to do the needed script.php changes?
Thanks again, Hannu
In forum: Virtue ThemeIn reply to: location of custom css
March 8, 2014 at 12:34 am #5873It’s not really a css file, It’s a php file and it echoes out the css right into the header. The file is called custom_css.php in the lib directory.
If you want a place to put custom css I would strongly recommend using a child theme.
Ben
-
AuthorSearch Results


