Jump to content
evert100

save code changes in a safe way

Recommended Posts

evert100    1
evert100

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
evert100    1
evert100

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
evert100    1
evert100

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
Simon    247
Simon

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

Share this post


Link to post
Share on other sites
evert100    1
evert100

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

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

    • 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,
      Dan
      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!

      -Jared
    • 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?
       
      p
      {    
           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+
      Hi
       
      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!!!
       
      Thanks
       
      Allan 
       
       
    • outtareach
      By outtareach
      I put some java snippet in a text box and now the page isnt loading but I cannot get in to remove the code.  Any suggestions here?
×