Archived

This topic is now archived and is closed to further replies.

  • 0

save code changes in a safe way


Question

Posted · Report post

Hi,

 

I had to make hardcode changes in the class.shortcodes.php file.

I wanted my popover window to work with click instead of hover and tried to put some html in it.

Okay, my question is how to save this little piece of code in a way it will not be overwritten with pagelines updates.

 

I don't have a child theme installed but work with the customization plugin. and work with version 2.4 on a client website.

 

What is the best solution here?

 

Thanks,

Evert

Share this post


Link to post
Share on other sites

5 answers to this question

Posted · Report post

Thanks, can you please do that for me. And please make it responsive. I changed the css to make This happen, but seems logical.

Can you still give me à clue About saving snippets of code. Add to functions.php?

Thanks

Share this post


Link to post
Share on other sites

Posted · Report post

Open a bug report and I'll add the option to the shortcode

Share this post


Link to post
Share on other sites

Posted · Report post

Hi Simon, before i forget another thing. You wrote in the forum that in version 2.4.1 the popover will have option for html. Is it possible to add the option for changing the trigger from hover to click because of Ipad issues? You know what i mean...!

 

Now to the above answer of yours: Does this provide that my code changes will be saved from updates overwritten-ness? I see a modal and a second modal. That's not my point.

 

Please could be a little more precise?

 

Thanks.

Share this post


Link to post
Share on other sites

Posted · Report post

I looked at the zip. It seems to me a bit overloaded to do it this way by means of an extra plugin and files in my solution because i just changed 2 lines of code in a part of class.shortcodes.php the part which deals with popovers. Is there a simpler way to do this in my situation?

Share this post


Link to post
Share on other sites