Child Theme and hide designed by…
-
Hi!
I have create the Child Theme of Customizr (3.2.8)for modify the theme and hide “designed by Themes&Co.
Now I don’t know how to modify the files php.
Sorry for my English and thanks in advance . I write to you because you are kind and not braggarts than italian’s computer scientists!
Thank you!
-
You’ll have offended @d4z who is an Italian braggart (but also my favourite Volunteer!) 😉
Here’s the snippet you need. The code needs to be added to the CT functions.php in /customizr/child or whatever you called it.
Thank you…but “This snippet applies to Customizr version 3.1.x and below. It may not work with version 3.2+.”
How can I do?
I can modify the function php?Here is it:
<?php
/**
*
* This program is a free software; you can use it and/or modify it under the terms of the GNU
* General Public License as published by the Free Software Foundation; either version 2 of the License,
* or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* You should have received a copy of the GNU General Public License along with this program; if not, write
* to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* @package Customizr
* @subpackage functions
* @since 1.0
* @author Nicolas GUILLAUME <[email protected]>
* @copyright Copyright (c) 2013, Nicolas GUILLAUME
* @link http://themesandco.com/customizr
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*//**
* This is where Customizr starts. This file defines and loads the theme’s components :
* 1) A function tc__f() used everywhere in the theme, extension of WP built-in apply_filters()
* 2) Constants : CUSTOMIZR_VER, TC_BASE, TC_BASE_CHILD, TC_BASE_URL, TC_BASE_URL_CHILD, THEMENAME, TC_WEBSITE
* 3) Default filtered values : images sizes, skins, featured pages, social networks, widgets, post list layout
* 4) Text Domain
* 5) Theme supports : editor style, automatic-feed-links, post formats, navigation menu, post-thumbnails, retina support
* 6) Plugins compatibility : jetpack, bbpress, qtranslate, woocommerce and more to come
* 7) Default filtered options for the customizer
* 8) Customizr theme’s hooks API : front end components are rendered with action and filter hooks
*
* The method TC__::tc__() loads the php files and instanciates all theme’s classes.
* All classes files (except the class__.php file which loads the other) are named with the following convention : class-[group]-[class_name].php
*
* The theme is entirely built on an extensible filter and action hooks API, which makes customizations easy as breeze, without ever needing to modify the core structure.
* Customizr’s code acts like a collection of plugins that can be enabled, disabled or extended. More here : http://themesandco.com/customizr/hooks-api
*
*///Fire Customizr
require_once( get_template_directory() . ‘/inc/init.php’ );/**
* The best and safest way to extend Customizr with your own custom functions is to create a child theme.
* You can add functions here but they will be lost on upgrade. If you use a child theme, you are safe!
* More informations on how to create a child theme with Customizr here : http://themesandco.com/customizr/#child-theme
*/and sorry for the offense but was referring to the Italian forum. If you take a tour you’ll understand.
Poor me I’m a beginnerthank you yourself are looking for more of this type
There is a transition period between 3.1 to 3.2 and that is a generic warning. However, that snippet is OK in 3.2.
No, do not edit that core code. You need to setup a Child Theme which will contain an almost blank functions.php. You add that snippet code into that Child Theme file.
Well…in Child Theme I have the file style.css than I should copy the function.php of the originally theme and enter this:
add_filter(‘tc_credits_display’, ‘my_custom_credits’);
function my_custom_credits(){
$credits = ”;
$newline_credits = ”;
return ‘
<div class=”span4 credits”>
<p> · © ‘.esc_attr( date( ‘Y’ ) ).’ ‘.esc_attr(get_bloginfo()).’ · ‘.($credits ? $credits : ‘Designed by Themes & Co‘).’ ·’.($newline_credits ? ‘
· ‘.$newline_credits.’ ·’ : ”).'</p> </div>’;
}??
Sorry and thank youOK I made it!
Thank you so much you have been very kind. I hadn’t realized that I had to create the file function.php blank child theme folder and insert those lines there.
Thanks thanks thanks
The topic ‘Child Theme and hide designed by…’ is closed to new replies.
