Home Forums HashOne Double the contact section?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2909
    maurice
    Participant

    Hi,
    I thought I’d better create a new thread for my inquiry. I want to double the contact section to have two sections that I can customize using the customizer.
    I already edited the following files:

    – inc/customizer.php: copied the whole section and renamed everything under this new section like this hashone_contact_sec -> hashone_contacts2_sec and so on
    – inc/js/customizer-scripts.js: copied the section case and renamed likewise to ‘accordion-section-hashone_contact2_sec’ and ‘hs-contact2-section’

    I’m getting the following error: Fatal error: Call to a member function add_section() on null in /homepages/4/d471003548/htdocs/fs_landing/wp-content/themes/hashone/inc/customizer.php on line 2561
    That’s basically the line where the copied and renamed Section Contact2 begins. How can I fix this error and what else will I have to do to get it working?

    Best greetings
    Maurice

    #2927
    Hash
    Keymaster

    Hi,

    It is not as simple as you thought. You need to make edits in multiple places.

    #2930
    maurice
    Participant

    Hi,
    would you mind giving me a hint which files I should take a closer look at? Would really appreciate it 🙂

    #2935
    Hash
    Keymaster

    We are really sorry. It is difficult to explain over here. We would have definitely helped you if it was just a matter of few edits.

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