Support » Theme: Customizr » Log in ? http://www.themesandco.com

Viewing 5 replies - 1 through 5 (of 5 total)
  • ElectricFeet

    (@electricfeet)

    You don’t need to logon to comment. The comment is now there.

    However, this is the best place to come for support, not in the comments.

    When something doesn’t work like this for me, I find it’s generally something basic, like:
    – the child theme isn’t the active theme;
    – I’ve put the functions.php in the wrong folder;
    – I didn’t refresh the widget page;
    – I did refresh the page, but didn’t spot the widget;
    – I changed something that introduced an error or a spelling mistake.

    Could you check all these? If they’re all OK, could you post your functions.php file in backticks? (Using the code button if you don’t have a backtick on your keyboard.)

    Thread Starter gerryleonard

    (@gerryleonard)

    I have done all your suggestions to no avail.

    See code below:

    <?php
    
    /* ADD Widget to footer*/
    
    // Adds a widget area. It gets registered automatically as part of the arra
    add_filter( 'tc_footer_widgets', 'my_footer_widgets');
    function my_footer_widgets( $default_widgets_area ) {
        $default_widgets_area['footer_four'] = array(
              'name'                 => __( 'Footer Widget Area Four' , 'customizr' ),
              'description'          => __( 'Just use it as you want !' , 'customizr' )
        );
        return $default_widgets_area;
    }
    
    // Style all the footer widgets so they take up the right space
    
    add_filter( 'footer_one_widget_class', 'my_footer_widget_class');
    add_filter( 'footer_two_widget_class', 'my_footer_widget_class');
    add_filter( 'footer_three_widget_class', 'my_footer_widget_class');
    add_filter( 'footer_four_widget_class', 'my_footer_widget_class');
    function my_footer_widget_class() {
        return 'span3';
    }
    
    /*
    * The best and safest way to add your own functions to Customizr is to create a child theme
    * http://codex.wordpress.org/Child_Themes
    */

    I also have a footer.php in my child theme folder (if i remove the footer disappears)

    <?php
     /**
     * The template for displaying the footer.
     *
     *
     * @package Customizr
     * @since Customizr 3.0
     */
    ?>
    
        </div>
    		 </div><!--/#main-wrapper"-->
    
    		 <!-- FOOTER -->
    		<footer id="footer">
    
    		 	<?php
    				do_action( '__sidebar' , 'footer' );
    
    		 		do_action( '__footer' );//display template, you can hook here
    		 	?>
    		 </footer>
    
    		<?php wp_footer(); //do not remove, used by the theme and many plugins?>
    
    	</body>
    
    </html>

    There is also a class-main-footer.php in my child theme folder

    <?php
    /**
    * Footer actions
    *
    *
    * @package Customizr
    * @subpackage classes
    * @since 3.0
    * @author Nicolas GUILLAUME <nicolas@themesandco.com>
    * @copyright Copyright (c) 2013, Nicolas GUILLAUME
    * @link http://themesandco.com/customizr
    * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
    */
    class TC_footer {
    
    function __construct () {
    add_action( '__footer'	 , array( $this , 'tc_display_footer' ));
    add_action( '__credits'	 , array( $this , 'tc_footer_credits' ) , 10 , 2);
    }
    
    /**
    * The template for displaying the footer.
    *
    * Contains footer content and the closing of the
    * #main-wrapper element.
    *
    * @package Customizr
    * @since Customizr 3.0
    */
    function tc_display_footer() {
    ?>
    <div class="colophon">
    
    <div class="container">
    
    <div class="row-fluid">
    
    <div class="span4 social-block pull-left">
    <?php do_action( '__social' , 'tc_social_in_footer' ); ?>
    </div>
    
    <?php do_action ('__credits' ); ?>
    
    <div class="span4 backtop">
    
    <p class="pull-right">
    <?php _e( 'Back to top' , 'customizr' ) ?>
    </p>
    
    </div>
    
    </div><!-- .row-fluid -->
    
    </div><!-- .container -->
    
    </div><!-- .colophon -->
    <?php
    }
    
    /**
    * Footer Credits call back functions
    * Can be filtered using the $site_credits, $tc_credits parameters
    *
    *
    * @package Customizr
    * @since Customizr 3.0.6
    */
    function tc_footer_credits( $site_credits = null, $tc_credits = null ) {
    ?>
    <div class="span4 credits">
    <?php
    $credits = sprintf( '<p>· © %1$s Design by Gerry Leonard</p>',
    esc_attr( date( 'Y' ) ),
    esc_url( home_url() ),
    esc_attr(get_bloginfo()),
    esc_html( get_the_date() )
    );
    echo apply_filters( 'footer_credits', $credits );
    ?>
    </div>
    <?php
    }
    
    }//end of class

    I hope you can spot reason why the forth footer widget is not displaying.

    Thanks

    ElectricFeet

    (@electricfeet)

    OK, the code that you have for the fourth widget works perfectly. It should be called functions.php and placed in your child theme folder. You don’t need this:

    /*
    * The best and safest way to add your own functions to Customizr is to create a child theme
    * http://codex.wordpress.org/Child_Themes
    */

    which you can delete.

    I also have a footer.php in my child theme folder (if i remove the footer disappears)

    There is also a class-main-footer.php in my child theme folder

    This is problematic on several counts. One: you don’t need that code and two: if your footer disappears without it, then your theme is perhaps incomplete somehow.

    What are you trying to do with those files? If you simply want to change the credits, then use this snippet in your functions.php instead, rather than copying theme files and modifying them (they get out of date / become incompatible with later updates).

    Are those three files the only files apart from style.css in your child theme? If so, and if I were you, I would delete all other files in the child theme apart from functions.php and style.css. Then delete and reinstall Customizr.

    Take a backup first, of course.

    Thread Starter gerryleonard

    (@gerryleonard)

    I have done what you suggested up to a point but the forth footer widget still doesnt appear.. I am wary of deleting and re-installing customzir… even though i have a back up plugin installed.. I dont trust it entirely.

    Thread Starter gerryleonard

    (@gerryleonard)

    HELP!

    I just deleted customizr and re-installed customizr-3 and now the site is broken.. the formating is all messed up…. It says the customizr child theme is BROKEN, and that the parent theme is missing! Yet I re-installed customizer 3 and activated it….

    Perhaps the child theme is from earlier version? Is that the issue? Does teh child thme need to be inside the parent? I had the site working before but have forgotten file structure?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Log in ? http://www.themesandco.com’ is closed to new replies.