- This topic has 3 replies, 2 voices, and was last updated 7 years, 1 month ago by Hash.
- AuthorPosts
- April 27, 2017 at 2:04 pm #2909mauriceParticipant
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
MauriceApril 27, 2017 at 10:05 pm #2927HashKeymasterHi,
It is not as simple as you thought. You need to make edits in multiple places.
April 28, 2017 at 1:01 am #2930mauriceParticipantHi,
would you mind giving me a hint which files I should take a closer look at? Would really appreciate it 🙂April 28, 2017 at 7:44 pm #2935HashKeymasterWe 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.
- AuthorPosts
- You must be logged in to reply to this topic.