Jump to content

Archived

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

dymond

How to Delete Java Script from hmtl section in PL5

Recommended Posts

dymond

Ahhh I screwed up. I was ALMOST DONE with my website, and tried adding a mailchimp js pop up form on the home page with this code mailchimp gave me for the pop up:

<script type="text/javascript" src="//s3.amazonaws.com/downloads.mailchimp.com/js/signup-forms/popup/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"></script><script type="text/javascript">require(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us12.list-manage.com","uuid":"d136d5c71f4509140650ecf70","lid":"ab22ff149a"}) })</script>

 

However, instead of adding a pop up it applied to the entire home page so now when I go to page to delet the code, I can;t... I get the stupid pop up and all i see is ablank page... please can someone out there help? Thank you! i have no idea where to manually find the code so I can delete it. I added a PL5 section "html" and dropped it in there...

www.purplerosedesigncenters.com

 

 

Screen Shot 2016-01-27 at 8.29.38 PM.png

Share this post


Link to post
Share on other sites
dymond

I have been on this for 2 hours. If I go to chrome, and click on view source, I see the code I need to delete around line 205 - 215...

<!-- Embed | Section -->
<section id="embed_usmequ4" class="pl-sn pl-col-sm-12 pl-col-sm-offset-0 pl-sn-embed"  data-object="PL_Embed_Section" data-clone="usmequ4" data-level="1"><div class="pl-sn-wrap"><div class="pl-sn-pad fix" data-bind="pledit: true" >  <div class="pl-text-wrap">
    <div class="pl-text" data-bind="plshortcode: html"><script type="text/javascript" src="//s3.amazonaws.com/downloads.mailchimp.com/js/signup-forms/popup/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"></script><script type="text/javascript">require(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us12.list-manage.com","uuid":"d136d5c71f4509140650ecf70","lid":"ab22ff149a"}) })</script></div>
  </div>
</div></div></section>        </div>
      </div>
    </div>
          </div>
    </div>

    </div></div></section>

How do i get to this file to delete this??  

Share this post


Link to post
Share on other sites
Andrew

Looks like you created a JS error?

We may need to add a 'reset page to default' button to help you fix this. If you've saved a JS error to the page, then it may be hard to fix without a reset.

Share this post


Link to post
Share on other sites
Simon

In the mean time, 2 options:

  1. Install the old pro tools plugin if you still have it as it includes a sections database editor screen, you can search for the code and delete it.
  2. Using phpmyadmin find the offender and delete its row from the db. 

Share this post


Link to post
Share on other sites
Andrew

why is this causing an issue in the parent 'editor' iframe? i need to see a live link if i can... 

Share this post


Link to post
Share on other sites
Andrew

ok we making a safemode in the new build so you can easily fix this,

Share this post


Link to post
Share on other sites
Simon

5.0.97 includes the new safemode.

From the release notes..

Quote
  • SAFE MODE. We have added a section safe load function for people that paste external scripts into sections that totally crash PL5 and need to get the editor back up in order to delete/edit them.
    Simply add plsafemode as a url parameter and all section output will be changed to 'NO OUTPUT ( SAFE MODE )'
    An example URL with the parameter might be: example.com/?pl_edit=on&plsafemode=1

Hope that helps.

Share this post


Link to post
Share on other sites
chrisayers

Same topic.... Since the sections are being registered, could you make a plug in or widget that shows the names of all the section ID's you have created in a list? The ability to delete or purge an entry as an added bonus.

Share this post


Link to post
Share on other sites
JudithKlinger

Fortunately I added that mailchimp embed code to a test page....but Simon/Andrew take note that Mailchimp & PL5 don't like each other very much! 

Share this post


Link to post
Share on other sites
Andrew

Mailchimp is erroring out, it's a JS error that breaks your pages JS. 

Anything that throws JS errors isn't gonna get along w PL5

Share this post


Link to post
Share on other sites
JudithKlinger
On 2/15/2016 at 5:18 AM, Simon said:

I tried that first & it was more troublesome than going direct to Mailchimp. Not a huge fan of Mailchimp, but it's sort of the standard (like Windows used to be....)

Share this post


Link to post
Share on other sites

  • Similar Content

    • petere21
      By petere21+
      After activate new web site
      I had several licences for use but system show me that I have no licence 
    • petere21
      By petere21+
      When i see wp content,i have no margin from left and right side means bordee on tablet view
      mobile margin around wpcontent is fine dtp also ok it looks like spread enough  on tablet - ipad - there is no margin and text from left side and widgets from tight side content sticking border of monitor how could i fix margin for example 5px for tablet view? But without changing the mobile margin 
      Sample https://www.restartnisa.sk/poloniny-po-zemplinsky/
      thanks 
      petere
    • petere21
      By petere21+
      Does pagelines support AMP technology for mobiles?
       
    • petere21
      By petere21+
      How to control spaces between images ?
      I can control section  padding from left and right side but not between  images.
      Could someone help me?
    • petere21
      By petere21+
      After changing protocol http to https I have lost all count information next to the icon in the Sharebar extension. All counts is set to zero. Is there any chance to give number of sharing take back? 
      thanks
×