-
AuthorPosts
-
May 15, 2015 at 10:46 am #444873
I have several more websites to build and really enjoy using your theme – although they have specifically requested that there be no reference to “enfold” when viewing the code – how can I do this – is it legal and is it possible? Would appreciate some advice please. Thanks in advance.
May 15, 2015 at 4:31 pm #445015Hey Paul!
Please see – http://kriesi.at/documentation/enfold/remove-avia-framework-debug-information/
You can also change themes nameCheers!
YigitMay 15, 2015 at 4:50 pm #445027I have set it up as a child theme and added the line of code to the Child theme functions – but its still showing in the source code…? What I want to do is loose the reference to enfold in all the source code – is this possible?
May 15, 2015 at 4:59 pm #445037Hey!
Please use the code as following
function avia_remove_debug() { remove_action('wp_head','avia_debugging_info',1000); } add_action( 'init', 'avia_remove_debug');
This should remove debugging info. Then you can change theme name in Style.css file.
Regards,
YigitMay 15, 2015 at 5:29 pm #445063This is my functions file:
<?php/*
* Add your own functions here. You can also copy some of the theme functions into this file.
* WordPress will use those functions instead of the original functions then.
*/function avia_remove_debug() {
remove_action(‘wp_head’,’avia_debugging_info’,1000);
}
add_action( ‘init’, ‘avia_remove_debug’);This is my Style.CSS
/*Theme Name: Ospods
Description: Handbuild Pods in Shropshire
Version: 1.0
Author: Paul Seager
Author URI: http://www.paulseager.co.uk
Template: enfold
*//*Add your own styles here:*/
I am still seeing loads of references to enfold throughout the code…? and still seeing the debug info?
</style>
<link rel=’stylesheet’ href=’http://www.ospods.co.uk/wp-admin/load-styles.php?c=1&dir=ltr&load=dashicons,admin-bar,wp-admin,buttons,wp-auth-check&ver=4.2.2′ type=’text/css’ media=’all’ />
<link rel=’stylesheet’ id=’avia-media-style-css’ href=’http://www.ospods.co.uk/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/assets/css/avia-media.css?ver=4.2.2′ type=’text/css’ media=’all’ />
<link rel=’stylesheet’ id=’open-sans-css’ href=’//fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C600italic%2C300%2C400%2C600&subset=latin%2Clatin-ext&ver=4.2.2′ type=’text/css’ media=’all’ />
<!–[if lte IE 7]>
<link rel=’stylesheet’ id=’ie-css’ href=’http://www.ospods.co.uk/wp-admin/css/ie.min.css?ver=4.2.2′ type=’text/css’ media=’all’ />
<![endif]–>
<link rel=’stylesheet’ id=’layerslider-global-css’ href=’http://www.ospods.co.uk/wp-content/themes/enfold/config-layerslider/LayerSlider/static/css/global.css?ver=5.3.2′ type=’text/css’ media=’all’ />
<link rel=’stylesheet’ id=’thickbox-css’ href=’http://www.ospods.co.uk/wp-includes/js/thickbox/thickbox.css?ver=4.2.2′ type=’text/css’ media=’all’ />
<link rel=’stylesheet’ id=’avia_sidebar-css’ href=’http://www.ospods.co.uk/wp-content/themes/enfold/framework/css/avia_sidebar.css?ver=2.2′ type=’text/css’ media=’all’ />
<link rel=’stylesheet’ id=’avia_admin-css’ href=’http://www.ospods.co.uk/wp-content/themes/enfold/framework/css/avia_admin.css?ver=2.2′ type=’text/css’ media=’all’ />
<link rel=’stylesheet’ id=’avia_colorpicker-css’ href=’http://www.ospods.co.uk/wp-content/themes/enfold/framework/css/avia_colorpicker.css?ver=2.2′ type=’text/css’ media=’all’ />
<script type=”text/javascript”>
window._wpemojiSettings = {“baseUrl”:”http:\/\/s.w.org\/images\/core\/emoji\/72×72\/”,”ext”:”.png”,”source”:{“concatemoji”:”http:\/\/www.ospods.co.uk\/wp-includes\/js\/wp-emoji-release.min.js?ver=4.2.2″}};
!function(a,b,c){function d(a){var c=b.createElement(“canvas”),d=c.getContext&&c.getContext(“2d”);return d&&d.fillText?(d.textBaseline=”top”,d.font=”600 32px Arial”,”flag”===a?(d.fillText(String.fromCharCode(55356,56812,55356,56807),0,0),c.toDataURL().length>3e3):(d.fillText(String.fromCharCode(55357,56835),0,0),0!==d.getImageData(16,16,1,1).data[0])):!1}function e(a){var c=b.createElement(“script”);c.src=a,c.type=”text/javascript”,b.getElementsByTagName(“head”)[0].appendChild(c)}var f,g;c.supports={simple:d(“simple”),flag:d(“flag”)},c.DOMReady=!1,c.readyCallback=function(){c.DOMReady=!0},c.supports.simple&&c.supports.flag||(g=function(){c.readyCallback()},b.addEventListener?(b.addEventListener(“DOMContentLoaded”,g,!1),a.addEventListener(“load”,g,!1)):(a.attachEvent(“onload”,g),b.attachEvent(“onreadystatechange”,function(){“complete”===b.readyState&&c.readyCallback()})),f=c.source||{},f.concatemoji?e(f.concatemoji):f.wpemoji&&f.twemoji&&(e(f.twemoji),e(f.wpemoji)))}(window,document,window._wpemojiSettings);
</script><script type=’text/javascript’>
/* <![CDATA[ */
var avia_framework_globals = avia_framework_globals || {};
avia_framework_globals.frameworkUrl = ‘http://www.ospods.co.uk/wp-content/themes/enfold/framework/’;
avia_framework_globals.installedAt = ‘http://www.ospods.co.uk/wp-content/themes/enfold/’;
avia_framework_globals.ajaxurl = ‘http://www.ospods.co.uk/wp-admin/admin-ajax.php’;
/* ]]> */
</script><script type=’text/javascript’>
/* <![CDATA[ */
var userSettings = {“url”:”\/”,”uid”:”1″,”time”:”1431703688″,”secure”:””};/* ]]> */
</script>
<script type=’text/javascript’ src=’http://www.ospods.co.uk/wp-admin/load-scripts.php?c=1&load%5B%5D=jquery-core,jquery-migrate,utils,plupload&ver=4.2.2′></script>
<!–[if lt IE 8]>
<script type=’text/javascript’ src=’http://www.ospods.co.uk/wp-includes/js/json2.min.js?ver=2011-02-23′></script>
<![endif]–>
<script type=’text/javascript’ src=’http://www.ospods.co.uk/wp-content/themes/enfold/framework/js/avia_media_advanced.js?ver=2.2′></script>
<script type=’text/javascript’ src=’http://www.ospods.co.uk/wp-content/themes/enfold/framework/js/avia_dynamic_templates.js?ver=2.2′></script>
<script type=’text/javascript’ src=’http://www.ospods.co.uk/wp-content/themes/enfold/framework/js/avia_mega_menu.js?ver=2.2′></script>
<script type=’text/javascript’ src=’http://www.ospods.co.uk/wp-content/themes/enfold/framework/js/avia_edit_dynamic_templtes.js?ver=2.2′></script>
<script type=’text/javascript’ src=’http://www.ospods.co.uk/wp-content/themes/enfold/framework/js/avia_sidebar.js?ver=2.2′></script>
<script type=’text/javascript’ src=’http://www.ospods.co.uk/wp-content/themes/enfold/framework/js/avia_option_pages.js?ver=2.2′></script>
<script type=’text/javascript’ src=’http://www.ospods.co.uk/wp-content/themes/enfold/framework/js/avia_media.js?ver=2.2′></script>
<script type=’text/javascript’ src=’http://www.ospods.co.uk/wp-content/themes/enfold/framework/js/avia_colorpicker.js?ver=2.2′></script>
<script type=’text/javascript’ src=’http://www.ospods.co.uk/wp-content/themes/enfold/framework/js/avia_media_wp35.js?ver=2.2′></script>
<script type=’text/javascript’ src=’http://www.ospods.co.uk/wp-content/themes/enfold/framework/js/avia_advanced_form_elements.js?ver=2.2′></script><script type=’text/javascript’>
/* <![CDATA[ */
var avia_shortcode_preview = ‘ee35f6b907’;
/* ]]> */
</script><!–
Debugging Info for Theme support:Theme: Enfold
Version: 3.1.5
Installed: enfold
AviaFramework Version: 2.2
AviaBuilder Version: 0.8
– – – – – – – – – – –
ChildTheme: Ospods
ChildTheme Version: 1.0
ChildTheme Installed: enfoldML:256-PU:35-PLA:2
WP:4.2.2
Updates: disabled
–>May 18, 2015 at 3:36 pm #445743Hey!
Please edit your parent theme as well and change theme name in style.css file and change the folder name in wp-content/themes.
Cheers!
YigitMay 18, 2015 at 4:54 pm #445825Struggling here a bit – sorry…
I am to add this code to both the ENFOLD functions.php and my child functions.php?
function avia_remove_debug() {
remove_action(‘wp_head’,’avia_debugging_info’,1000);
}
add_action( ‘init’, ‘avia_remove_debug’);When I add it to the Enfold functions.php – it just produces a white page when viewing the site?
Can you document what goes where please?
Sorry to be a pain!
PMay 20, 2015 at 3:18 am #446873Hi!
If you want to change the name of the enfold.css file to something else, you need to rename the theme in the style.css file but it will deactivate the theme and you will lose the theme options. And reset all layout options on each page. You should have done this at the very start.
Theme Name: Enfold
Or rename the child theme to something else then toggle any theme options to resave the css file. Create a backup of the site and a restore point before doing anything.
The code above (https://kriesi.at/support/topic/how-do-i-hide-the-enfold-css-reference-to-make-the-theme-look-personal-to-my-client/#post-446873) should remove the debug info inside the head tag.
Regards,
IsmaelJune 7, 2015 at 7:10 pm #455655This reply has been marked as private.June 8, 2015 at 1:10 pm #456043Hey!
Can you please try this code instead – http://kriesi.at/documentation/enfold/remove-avia-framework-debug-information/
Regards,
YigitJune 8, 2015 at 1:31 pm #456065Sorry, I’ve tried that as well – cleared my cache, tried different browsers and also tried privacy browser windows. I’m adding the code to Functionality Plugin; however, all the other functions in there work as intended. Any other suggestions?
Thanks!
June 9, 2015 at 8:50 am #456516Hey!
Please try this:
add_action('init','avia_remove_debug'); function avia_remove_debug(){ remove_action('wp_head','avia_debugging_info',1500); remove_action('admin_print_scripts','avia_debugging_info',1500); }
If it doesn’t work in the plugin, try to add it directly in the functions.php file.
Regards,
IsmaelJune 9, 2015 at 9:06 am #456523Hi!
If the code above didn’t work, use this:
add_action('after_setup_theme','avia_remove_debug', 10); function avia_remove_debug(){ remove_action('wp_head','avia_debugging_info', 1000); remove_action('admin_print_scripts','avia_debugging_info', 1000); }
Regards,
IsmaelJune 17, 2015 at 1:28 am #460509Did this ever get resolved?
June 19, 2015 at 10:48 am #461779Hey!
I think at least one of the codes provided in this thread should work. Did you try them? Let us know if it does not work for you and post a link to your website.
Best regards,
Andy -
AuthorPosts
- You must be logged in to reply to this topic.