Jump to content

save code changes in a safe way

Recommended Posts




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?




Share this post

Link to post
Share on other sites

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?



Share this post

Link to post
Share on other sites

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

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

Share this post

Link to post
Share on other sites

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?


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • jagipson
      By jagipson+
      @Andrew @Simon
      I was wondering on your old documentation for DMS you supply the code for a Nested Column:
      <div class="row"> <div class="span4">4</div> <div class="span8">8 <div class="row-fluid"> <div class="span6 zmb">6</div> <div class="span6 zmb">6</div> </div> </div> </div> You don't explain how to do this in Platform 5 Besides <div class="row"> </div>
      Whats the appropriate code for a nested section in Platform 5.
    • DanatTLFN
      By DanatTLFN
      Site URL: thelocalfilmnetwork.com
      DMS Firmware: 2.2.1
      Wordpress: 4.5.1
      Ticket Reference: 
      At the bottom of this post, there is a CSS only option that I have implemented into my site. It looks brilliant, and I am super grateful for that addition to the thread. The only issue I am having is that the code he provides does not include all of the styling options for the button itself.
      My question is, how might I go about editing the styling of the button i.e. shadows, every element of the coloring, and border colors?
      No big deal if it's not easy to fix. Happy to provide any further information if necessary.
      Kind regards,
      P.S. I have opened up the button in Google Dev window with Inspect and start editing it there, but it looks like there are some areas of the code that are connected to an external source (most likely bootstrap) and therefore I can't seem to edit it as much as I would like.
    • Bakushan
      By Bakushan
      Hello everyone!

      I have searched the forums for the answer to this, and cannot find the answer.

      My client's site is here. http://diamond-jim.com/

      Currently when you click the banner at the top, it just takes you back to the home page.

      We would like for when you click the banner for it to call a number, since a majority of the visitors to the site are on mobile. I know this is possible, and have the code to do it, but I dont know where to put the code.

      I am aware of where the custom code input is for the childtheme in Pagelines, but do not know how to properly format the code to be a phone number (or any link I wish for that matter) instead of the default home page link.
      Any help is appreciated. Thank you so much!

    • redstate
      By redstate
      I'm trying to double-space the content in a Highlight and make it flush left. Where do I put the code? I've tried Custom Less/CSS and Styling Classes but neither seems to work. Is this the right code?
           text-indent: 3em;    
           line-height: 2.5 em;
      You can see my Highlight below the RevSlider at www.americansendingabuse.org. Do I need to make the Highlight taller so the content will better fit?
    • allanlove
      By allanlove+
      I am building a new site and the client wants to have a different background image on each of the main pages, not just in a section, but applied to the entire page. This used to be easy in the old Pagelines but not so much in the new DMS.
      I wonder if someone could give me the custom css to use indicating which bits need to be unique for each page and also how I apply that code to the page itself? How do I apply a different class for each page of the site?
      I only have a very basic understanding of code so please go easy on me!!!