Child THEME

HI=)
How add slider.php file to child theme? I need edit slider php.

Try this -
<?php
/**

  • Slider template
  • @package Sydney child
    */

BUT CHANGES NOT WORKED. How edit slider php???

Hello there,

Dear Alena,

Thank you for asking.

The slider.php contains a pluggable function. It allows us to overwrite it in the child theme’s functions.php file. We shouldn’t need to replicate the slider.php file.

To edit it, from sydney/inc/slider.php (parent theme), copy/paste the following function to your child theme’s functions.php file.

function sydney_slider_template() {
    // code 
}

I hope this reply helps.

Warmest regards,
Kharis

I cant.
Try add this to function php

<?php if ($slider_button) : ?>
" class=“roll-button button-slider”><?php echo esc_html($slider_button); ?>


<?php endif; ?>

HAVE THIS ERROR Parse error: syntax error, unexpected ‘<’ in

TRY ADD CODE to after this line
<?php if ($slider_button) : ?>

I NEED ADD ALL SLIDER PHP TO FUNCTION?

Dear Alena,

The reply form seems can’t render your code completely. Could you please consider to post it here?

Warmest regards,
Kharis