• Hi all!
    I have a little problem. I have to add third big title button in Orfeo theme. I was add changes in style.css & function.php but changes wasn’t.
    function.php :

    /* Add the third button in the Big Title section */

    /**
    * Control for button text
    */
    $wp_customize->add_setting(
    ‘orfeo_big_title_third_button_text’, array(
    ‘default’ => esc_html__( ‘Third Button text’, ‘orfeo’ ),
    ‘sanitize_callback’ => ‘sanitize_text_field’,
    ‘transport’ => $selective_refresh ? ‘postMessage’ : ‘refresh’,
    )
    );
    $wp_customize->add_control(
    ‘orfeo_big_title_third_button_text’, array(
    ‘label’ => esc_html__( ‘Third Button text’, ‘orfeo’ ),
    ‘section’ => ‘hestia_big_title’,
    ‘priority’ => 30,
    )
    );

    /**
    * Control for button link
    */
    $wp_customize->add_setting(
    ‘orfeo_big_title_third_button_link’, array(
    ‘default’ => ‘#’,
    ‘sanitize_callback’ => ‘esc_url_raw’,
    ‘transport’ => $selective_refresh ? ‘postMessage’ : ‘refresh’,
    )
    );
    $wp_customize->add_control(
    ‘orfeo_big_title_third_button_link’, array(
    ‘label’ => esc_html__( ‘Third Button URL’, ‘orfeo’ ),
    ‘section’ => ‘hestia_big_title’,
    ‘priority’ => 30,
    )
    );

    $wp_customize->selective_refresh->remove_partial( ‘hestia_big_title_button’ );

    $wp_customize->selective_refresh->add_partial(
    ‘orfeo_big_title_third_button’, array(
    ‘selector’ => ‘.carousel .buttons’,
    ‘settings’ => array( ‘hestia_big_title_button_text’, ‘hestia_big_title_button_link’, ‘orfeo_big_title_third_button_text’, ‘orfeo_big_title_third_button_link’ ),
    ‘render_callback’ => ‘orfeo_big_title_buttons_callback’,
    )
    );

    }
    add_action( ‘customize_register’, ‘orfeo_change_defaults’, 99 );
    /**
    * Add a third button in Big Title section
    *
    * @since 1.0.0
    */
    function orfeo_big_title_third_btn() {

    $orfeo_big_title_third_btn_text = get_theme_mod( ‘orfeo_big_title_third_button_text’, __( ‘Third button text’, ‘orfeo’ ) );
    $orfeo_big_title_third_btn_link = get_theme_mod( ‘orfeo_big_title_third_button_link’, ‘#’ );

    if ( ! empty( $orfeo_big_title_third_btn_text ) && ! empty( $orfeo_big_title_third_btn_link ) ) {
    ?>
    ” title=”<?php echo esc_attr( $orfeo_big_title_third_btn_text ); ?>” class=”btn btn-right btn-lg” <?php echo hestia_is_external_url( $orfeo_big_title_third_btn_link ); ?>><?php echo esc_html( $orfeo_big_title_third_btn_text ); ?>
    <?php
    }
    }
    add_action( ‘hestia_big_title_third_buttons’, ‘orfeo_big_title_third_btn’ );

    style.css :

    .header .carousel .buttons .btn.btn-primary,
    .header .carousel .buttons .btn.btn-primary:hover {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    }
    .header .carousel .buttons .btn.btn-primary:hover {
    opacity: 0.75;
    }
    .header .carousel .buttons .btn-center {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    color: #ffffff;
    background-color: transparent;
    border: 2px solid transparent;
    padding: 9px 28px;
    }
    .header .carousel .buttons .btn-center:hover {
    opacity: 0.75;
    }
    .header .carousel .buttons .btn-right {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    color: #ffffff;
    background-color: transparent;
    border: 2px solid transparent;
    padding: 9px 28px;
    }
    .header .carousel .buttons .btn-right:hover {
    opacity: 0.75;
    }
    .header .carousel .buttons .btn-primary + .btn-center + .btn-right {
    margin-left: 30px;
    }

    What i do wrong?

    • This topic was modified 6 years, 3 months ago by dzenka.
    • This topic was modified 6 years, 3 months ago by dzenka.
Viewing 1 replies (of 1 total)
  • AC

    (@purplecodes)

    Themeisle Support

    Hello there,

    Apologies for the late response.

    We do not support custom coding.
    We really take the requests of our people dearly, but we can’t afford to help you with custom code modifications of this scope. It’s a little beyond what our support services include.

    You see, when it comes to technical issues of any kind, bugs and etc., we’re here for you, and we will solve them ASAP.
    For custom coding work though, you may want to hire a freelancer to get the codes done.

    Thank you for understanding and I hope we’re still cool!

Viewing 1 replies (of 1 total)
  • The topic ‘Orfeo – third big title button’ is closed to new replies.