Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Dear Kathryn!
    I don’t see Featured content button in my Customizer…
    There are only

    Site identity
    Colors
    Header image
    Background image
    Menus
    Widgets
    Static Front Page
    Theme Options
    Additional CSS

    What’s wrong???
    Thanks for your help!

    • This reply was modified 8 years, 9 months ago by wplova.
    wplova

    (@wplova)

    Ok, I added customizer_new.php file, called it in functions.php, but no changes.

    How is Edin handling child themes, i mean, if I have function edin_customize_register it says customize_new.php error “cannot declare twice, because it’s already in edin theme”… So when i change function name to edinchild_customize_register it won’t work…

    Maybe it’s too advanced for me, but at least i have tried!

    It would be nice to have 6 featured articles to front page so that you can choose them from customizer… Can’t you add this automaticly to customizer, since people are asking here widely, how to get the front page with 6 featured articles, as in your template example…

    Dear Kathryn! I’m having same issue, thanks for advice, i managed to add everything else, BUT i want to have same layout in page-templates/front-page.php so when i change the line 18:

    <?php edin_featured_pages(); ?>

    to my new function:

    <?php edinchild_featured_pages(); ?>

    It gives me Fatal error:
    Fatal error: Call to undefined function edinstyle_featured_pages() in /home/……/page-templates/front-page.php on line 18

    WHAT TO DO?

    My child themes functions.php has this (only):

    /**
     * Customizer additions.
     */
    require_once( get_stylesheet_directory() . '/inc/customizer.php' );

    AND my customizer.php has this

    function edinchild_customize_register( $wp_customize ) {
    	$wp_customize->get_setting( 'blogname' )->transport         = 'postMessage';
    	$wp_customize->get_setting( 'blogdescription' )->transport  = 'postMessage';
    	$wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage';
    
    	$wp_customize->add_section( 'edin_theme_options', array(
    		'title'    => __( 'Theme Options', 'edin-child' ),
    		'priority' => 130,
    	) );
    
    	/* Front Page: Featured Page Four */
    	$wp_customize->add_setting( 'edin_featured_page_four_front_page', array(
    		'default'           => '',
    		'sanitize_callback' => 'edin_sanitize_dropdown_pages',
    	) );
    	$wp_customize->add_control( 'edin_featured_page_four_front_page', array(
    		'label'             => __( 'Front Page: Featured Page Four', 'edin-child' ),
    		'section'           => 'edin_theme_options',
    		'priority'          => 11,
    		'type'              => 'dropdown-pages',
    	) );

    The customizer shows me 6 featured pages correctly, which i can choose, so only the page-template/front-page.php gives me the error…
    Many thanks for your help!

Viewing 3 replies - 1 through 3 (of 3 total)