• Hi !
    I have an issue regarding the directory I should put in my child-theme to customize some php on the header section of the site.

    While using WordPress customiser dashboard I managed to have the main header layout-4 with two rows.
    my issue is concerning eventually changing the html-markup a little bit.

    So I found this file :
    sydney > inc > classes > class-sydney-header.php

    and basically copy the original directory in my child-theme but when I add text in it, looks like it doesn’t work… (FYI, the same code written in the parent’s theme is going well)

    Is there an other file or code to add to my child-theme to make it read it ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @bmhkd,

    I am afraid that class-sydney-header.php is not intended to be overriden somewhere else. This file provides hook to display markup content in these lines in that file:

    /**
    * Constructor
    */
    public function __construct() {

    if ( get_option( 'sydney-update-header' ) ) {
    add_action( 'sydney_header', array( $this, 'header_markup' ) );
    add_action( 'sydney_header', array( $this, 'header_mobile_markup' ) );
    } else {
    add_action( 'sydney_header', array( $this, 'header_legacy' ) );
    }

    //add_action( 'sydney_header', array( $this, 'header_image' ) );
    }

    You may change the content with your own via action hook instead. Ref: https://developer.www.ads-software.com/plugins/hooks/custom-hooks/.

    Thread Starter bmhkd

    (@bmhkd)

    @kharisblank

    Thank you very much, that’s look a big hint to me. I’ll check if I can find somehow to fix it!

    I let the topics open if I may have further question regarding that particular issue.

    regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.