I’m getting an error using these internal modules. Which SASS is used in Codekit?
]]>We updated the plugin recently on several of our sites, and now frontend SCSS codes do not load on the site unless the user is logged in. What can we do to correct this? We’ve rolled back to the previous version in the meantime.
]]>Hi there,
very strange thing:
when updating my scss custom code, a red cross shows up.
Mouse over says: “221-scss-default.scss file not found for @import: line 1, column: 0 (229-scss-output.scss)”
Does anyone know what this exactly means?
I am sure that there needs to be a link between the custom codes plugin and the wordpress system. But until yet it is more guessing than knowing.
Thanks for help!
]]>I have inserted a php snippet, selected Custom Functions, selected backend and Administrator, but the code is showing at the top of all pages on the backend as text.
Do I need the <php></?> tags
]]>
Hello, I’m a member of G2O’s IT Dept.
Our Customer ID is 7881307, and Subscription ID is 459072.
So we purchased a single site license on 1/24, but unfortunately we just discovered that we were sent the wrong link (We were supposed to buy a license from a different CodeKit). Is there a way that we can get a refund from the license we just purchased?
]]>I purchased a premium version and I would like a refund please. It’s not working the way I want, basically I want the option to conditionally hide/show JS snippets based on the parent slug without selecting each page.
e.g.
/{state}
/{state}/{sub_page}
/{state}/{sub_page}/{sub_page}
]]>Hi, I currently have the Pro version of the plugin and I’m wondering why Revisions are not activated and displayed in a Revisions meta box.
With a plugin like this, Revisions are more crucial to me than on other types of post, as if one of my team edits the code and gets it wrong, we’re unable to roll back to a previous version unless we set up GIT commits, which we don’t want to do on our smaller client sites.
I’ve tried to add the code for revisions (see below), but it does not seem to function correctly. Not sure what I’m doing wrong.
Can you please provide the code to make revisions work on Saving of each file.
Thanks
Ostii
<?php
function enable_custom_code_revisions( $args ) {
$args['supports'][] = 'revisions';
return $args;
}
add_filter( 'register_post_type_args', 'enable_custom_code_revisions', 10, 1 );
function add_custom_codes_revisions_meta_box() {
global $post;
if ( ! $post ) return;
$revisions = wp_get_post_revisions( $post->ID );
if ( count( $revisions ) > 0 ) {
add_meta_box(
'revisionsdiv',
__('Revisions'),
'post_revisions_meta_box',
'custom-code',
'normal',
'core'
);
}
}
add_action('edit_form_after_title', 'add_custom_codes_revisions_meta_box');
function custom_code_revision_limit( $num, $post ) {
if ( $post->post_type === 'custom-code' ) {
return 20; // Set the number of revisions to keep for the 'custom-code' post type.
}
return $num;
}
add_filter( 'wp_revisions_to_keep', 'custom_code_revision_limit', 10, 2 );
]]>
I thought my problem described below was because I did not have the Pro version so I bought a license and it still doesn’t work.
I took over a WordPress website that has Custom Codes version 1.1 (in an old version of WordPress), I made an exact copy of the website for development but although the Custom Codes folder is there it doesn’t show up in the WordPress Plugins. Is there any documentation on version 1.1?
The previous developer had several folders (colorbox, fonts, mpdf60, property-admin-helper) inside here:
wp-content/custom_codes (Does CodeKit access folders?)
as well as some files – the most important to me is admin_funtions.php. The admin functions puts a Print link inside WordPress on a custom post and accesses the mpdf60 folder so the client can generate and print a PDF with all the custom posts in a customized report.
I tried installing the new version of CodeKit 2.3.6 and copied all the old files to wp-content/custom_codes but none of the functionality is working still because I assume Codekit is not working. Please help Thanks in advance
]]>Dear all,
my wp websites are totally redone and I generally have an average of 30 personal codes (js and css) which are only in part to be enqueued to all pages: most of them are to be embedded only in specific pages. Till now I used a powerful plugin, but facing a couple of problems:
Hello, I created a ticket 2 weeks ago to get help with the Codekit plugin. Can I please get some support with my issue as soon as possible.
]]>Hello,
I updated my login page URL so it’s not the default wp-admin. However, this action has removed all of the styling I set up with the CodeKit Plugin. Is there anyway to fix this so the Styling is applied to the new login page URL?
Many Thanks,
Jason
This is a fantastic plugin and we use it on every site. Just remember that some other plugins, loops, etc. will sometimes not use the PHP code added through this plugin, in which case the only alternative is to move it into functions.php .
Our only problem with this plugin – please, please can you tell us how to disable the auto-close quotes? This messes us up CONSTANTLY. Every time we type a quote, almost always wanting only a single quote, it requires multiple ‘clean up’ keys to delete the extra and get the cursor back where we wanted.
Thanks,
Magestyx
]]>I am writing you here because your support form on https://www.codekitwp.com/support/ does not work. We are a paying customer.
We are running a multisite. We use the codes plugin there.
Is it possible that the code files are stored in the folder of the multisite uploads folder? So instead storing everything under wp-content/custome_codes files for a multisite with the ID of 2 should be stored under wp-content/uploads/sites/2/custom_codes. Otherwise we will have the case that the IDs on some point will could become the same for site 1 and 2 and overwrite the code files from another installation.
Thanks
Miron
I have already submitted 2 support requests via the homepage. Both were unanswered.
It’s about the email address [email protected]
I have requested a refund. Do you want to sit it out now until the 7 day period is over for refunds?
]]>Hey guys!
I am getting an error when I click on the subscriptions tab of Woocommerce.
I do not have any PHP snippets and the problem still persits.
I believe the issue could come from the filter that adds the body class to the woocommerce “Subscription” tab on the Admin area for the addons.
https://localhost/marie/wp-admin/admin.php?page=wc-addons§ion=helper
I can’t troubleshoot because the stack trace does not reveal that your code is at play here, but by a process of elimination, deactiving custom codes fixes the issue. The issue can be replicated on other sites on live servers.
I do not think it is a rush to fix this because the tab is an admin tab for addons for woocommerce and can be avoided.
Fatal error: Uncaught TypeError: Argument 1 passed to WC_Admin_Addons::filter_admin_body_classes() must be of the type string, null given, called in C:\apps\servers\5\htdocs\marie\wp-includes\class-wp-hook.php on line 303 and defined in C:\apps\servers\5\htdocs\marie\wp-content\plugins\woocommerce\includes\admin\class-wc-admin-addons.php:807 Stack trace: #0 C:\apps\servers\5\htdocs\marie\wp-includes\class-wp-hook.php(303): WC_Admin_Addons::filter_admin_body_classes(NULL) #1 C:\apps\servers\5\htdocs\marie\wp-includes\plugin.php(189): WP_Hook->apply_filters(NULL, Array) #2 C:\apps\servers\5\htdocs\marie\wp-admin\admin-header.php(226): apply_filters('admin_body_clas...', '') #3 C:\apps\servers\5\htdocs\marie\wp-admin\admin.php(239): require_once('C:\\apps\\servers...') #4 {main} thrown in C:\apps\servers\5\htdocs\marie\wp-content\plugins\woocommerce\includes\admin\class-wc-admin-addons.php on line 807
There has been a critical error on this website. Please check your site admin email inbox for instructions.
]]>
Hey
I am redoing my tutorials at easywebdesigntutorials.com and was looking for a plugin to where I could add CSS and PHP code, and discovered your plugin.
Awesome!
I have installed and activated the plugin.
I am able to customize the coding environment! Awesome!
—
I am switching code over from the Code Snippets plugin and over to the Custom Codes Editor plugin, as I want to use PHP and CSS code. One thing I really liked about the Code Snippets plugin was that I could easily activate and deactivate various code. I hope to see this feature also in the Custom Codes Editor plugin.
Thanks!
Actually one more thing. It would also be helpful to have a description field, in the Custom codes screen. So one can fill out a description of each code, so one can quickly look through the Codes screen and see the description to each code and what it does.
Actually another thing. Having a quick edit – duplicate of a code would be nice to add.
So three new features:
Activate/Deactivate code
Description Field
Quick Edit (Codes screen) Duplicate code.
Uncaught Error: Call to undefined function wp_generate_password() in /…./wp-admin/includes/file.php:669 Stack trace: #0 /var/www/o…/includes/class-wp-filesystem-ftpext.php(138): wp_tempnam() #1 /..wp-content/plugins/custom-codes/custom-codes.php(97): WP_Filesystem_FTPext->get_contents() #2 ../wp-settings.php(391): include_once(‘/var/www/…’) #3 …/wp-config.php(104): require_once(‘/var/www/…’) #4 …wp-load.php(37): require_once(‘/var/www/…’) #5 …/wp-admin/admin.php(34): require_once(‘/var/www/old.he…’) #6 {main} thrown in …wp-admin/includes/file.php on line 669
]]>Hello,
Thanks for your plugin, but I always fail to make my custom code live properly. When I add custom code, it always appears plain code in my website head. Do you have guide to add custom code ?
I try to add :
add_action( 'wp_footer', 'woocommerce_show_coupon', 99 );
function woocommerce_show_coupon() {
echo '
<script type="text/javascript">
jQuery(document).ready(function($) {
$(\'.checkout_coupon\').show();
});
</script>
';
}
it is showed not properly, just plain text.
Thanks
]]>Hi! I like your plugin a lot!
However today the plugin stopped working.. On pre-existing files the editor page won’t load because of a vue.js error (in the console)
If I add a new code file I can edit code till I publish the script/styles. Then the same error occurs as by pre-existing files.
Here is the vue.js error:
ReferenceError: includes is not defined
at wn.eval (eval at Ya (vue.min.js?ver=2.2.0:1), <anonymous>:8:32666)
at wn.e._render (vue.min.js?ver=2.2.0:6)
at wn.r (vue.min.js?ver=2.2.0:6)
at fn.get (vue.min.js?ver=2.2.0:6)
at new fn (vue.min.js?ver=2.2.0:6)
at vue.min.js?ver=2.2.0:6
at wn.$mount (vue.min.js?ver=2.2.0:6)
at wn.$mount (vue.min.js?ver=2.2.0:6)
at wn.t._init (vue.min.js?ver=2.2.0:6)
at new wn (vue.min.js?ver=2.2.0:6)
Ue @ vue.min.js?ver=2.2.0:6
vue.min.js?ver=2.2.0:6 ReferenceError: includes is not defined
at wn.eval (eval at Ya (vue.min.js?ver=2.2.0:1), <anonymous>:8:32666)
at wn.e._render (vue.min.js?ver=2.2.0:6)
at wn.r (vue.min.js?ver=2.2.0:6)
at fn.get (vue.min.js?ver=2.2.0:6)
at fn.run (vue.min.js?ver=2.2.0:6)
at un (vue.min.js?ver=2.2.0:6)
at Array.<anonymous> (vue.min.js?ver=2.2.0:6)
at qe (vue.min.js?ver=2.2.0:6)
I updated the plugin last night to the newest version (2.2.0). Maybe it has something to do with that?
Otherwise I would like to recover my code. I looked through the plugin files but couldn’t find a sort of save file. Where is the code stored?
Thanks for the help in advance!
– Tom
]]>Hi there,
could you explain the functionality of the order feature? I waited for a couple of updates after the 2.0 release but I still don’t see any use for it.
It would be great to have the option to order all custom codes files alphabetically or via the order feature.
Now I can finally use custom codes to split a large code base over multiple files, the ability to manage the order in which the files are listed would complete the perfect setup for larger projects.
Thanks a lot!
]]>Hi there,
since the latest update I get an error message (variable not found) when I save my main scss file which contains several @import to other custom codes files.
The editor consideres it an error since the variable is defined in another scss file which is imported.
The editor still saves all changes but I get the error message.
Thanks a lot – Alex
]]>Hi Bilal,
Thanks for a great plugin! I really like the simplicity, design and functionality.
Maybe I am overlooking how to add default scss/css which is applicable for all breakpoints. But I could not find in the documentation how to enable default scss/css, which is applicable for all breakpoints
Feature Request:
I am not sure if this is the appropriate place for feature requests, but I have the following feature request:
When selecting “Frontend” in the metabox, I see all breakpoints, like Desktop, Tablet (horizontal), Table (vertical), Mobile (landscape), Mobile (portrait) and Retina.
I think it would be more intuitive to have a Default/ALL TAB as well, where I can put all the ‘Default’ SCSS or CSS code. The code specific for each breakpoint I then can put in each TAB. Does this make sense?
Thanks!
wp-fred
Is there a global area for things like fonts and colors that are consistent and global?
Seems like SCSS is always broken into breakpoints.
]]>Gives an error when trying to delete the plugin from WP backend.
Please fix.
Hello,
I am using a windows 2016 server for a WordPress website.
I have installed this plugin but I see the following message:
Custom Codes: “wp-content/custom_codes” folder does not have correct permissions. Please update its permissions to be able to use the plugin. (CHMOD 777 -> 755)
What can I do to fix it as I am not able to use the plugin?
Also after the installation, it affected rather parts of the website. Custom CSS from the customizer is not applied to the website. It has also affected the theme builder and I can’t make any changes.
thanks
]]>I see a css panel and a js panel. where do i insert php codes?
]]>Hi can you add the option to minify the css code?
]]>Love the plugin. Have you publicly documented the breakpoints?
]]>Hi Bilal,
Thanks for a great plugin!
I am not sure if this is the appropriate place for feature requests, but I have the following feature request:
By default, the CSS/SASS is desktop first. That is, no media query for desktop.
May be add to the Responsivity Settings section.
Thanks!
Danny Hurlburt
With the new update the screen hangs on “saving” I have tried refreshing and still it hangs. It has happened with 3 sites i have built
]]>