How to remove ad script from wordpress theme? - php

Every time I open my wordpress site, it has automatically generate pop ads of tradeadexchange.com . I have tried many possible solutions but none of them worked.
In head tag, this script is automatically injected.
Below calls are created. In chrome console>Network>
How should I remove this script tag in my code in wordpress. Site link -http://www.radhefurnishing.com

I think this is not an issue of wordpress there may be some extension in browser will cause this issue first of all try to check in different browser and different machine.
If that is still there then let me know i will help you using some coding stuff.

Related

My Magnific popup is not working with quickphp

I'm totally new in website development and as my first experiment I'm working with website to replace my company's old site (if success).
Have done pritty much allready but I really want to have this popup image gallery to work with Magnific popup for the responsiveness.
I have setup a local server with QuickPhp for development as I don't have server for my website yet.
Eventhough my site is working when tested in CodePen but not on my Quickphp server.
I made sort of gallery site that contains images that is supposed to open to popup for larger view and to zoom closer if wanted. The popup itself will work but some of code doesn't work. In example:
-not showin close button.
-not closing popup when clicking background.
-no animation when popup opens.
this all works with the same code tested on the CodePen-site though.
Magnific popup JS and the CSS codes I copied from the Build tool(to the folder within the sites .php)
They are included to .php page with script. CSS in the head and the JS in the footer. JQuery is from google https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js
For now I would need answears to theese Questions:
1. Is it possible that the problem is within the QuickPhp-server setup of mine? If It doesn't fully support jquery in local setup?
2. What else could be wrong?
If needed I can put the codes here later.
The problem was in the code allthough. I implemented the codes from the Maqnific website again and red the documentation over 5 times. I also noticed that the included stylesheet files needed to be linked from the website's root folder exactly as shown on the Macnific guide.
If anyone is having similar problem I suggest to keep on reading and searching. Taking a brake for day or two makes a differens in perspective too. Some time apart of the project helps to notice things that you might not have seen before. Especially checking the code for incorrections is a bitch.
Just yesterday I found a typo in my media query meta tag that was making my site not to change styling when viewport size changes. The typo was from 2 weeks ago. max-device-width was written as max-divice-width.

Prevent script from overriding page title in Joomla 1.5

I'm working on a project that is built on Joomla 1.5. I've been trying to set the title of the pages for different views and everything works fine except for that title of the document is set to as the project name once the document is loaded completely. However, I can clearly see the title set by me as the document title while it is loading. Also, when I checked in firebug, I found that some script is overwriting document title over and over again on a span of 2 sec. I checked almost all the settings pages to disable this but couldn't find any such option; I'm not a Joomla expert. Also, I don't want to delete that script manually, so if someone has any idea about how to fix it, I'd really appreciate it.
PS: I searched for solution before posting this so please, no -1.
So apparently, there was a script in a file chat.js on our server that was updating the page title every 2 seconds. So lame that I didn't realize it could be such a minor mistake. I wasn't able to find it as it was being included only in some views. Anyways, sorry for wasting your times. If anyone of you've faced a similar issue, please do check your script in Javascript debugger.

Forcing Google Chrome POST/GET with JavaScript

I'm cross posting this question here. After a few days of it being unanswered, I realize the core question may be more of a web dev question, rather than Wordpress.
My original question: https://wordpress.stackexchange.com/questions/78037/wp-click-track-plugin-help
Details:
(Note: The wordpress plugin developer has admittedly given up on this plugin, so I'm on my own.)
Plugin location: http://wordpress.org/extend/plugins/wp-click-track/
Files in question within plugin: ajax.js and click-tracker.php
I've been using WP-Click-Track plugin for a few years now and it works great. The basis of the plugin is to find a href's within the post, and rewrite them with a little javascript. When the user clicks the link, the javascript reports to the plugin, which saves the link, the title and a count into a MySQL table. Pretty straight forward.
Even after a few years of undevelopment, the plugin continues to work great with Firefox and IE. It seems with the latest round of Chrome updates however, the plugin is not tracking them, unless the link (internal or external) contains target="_blank". This is fine for externally facing links, but I don't want to have internal links open up in a new window. That's annoying to the user.
I can see in the JavaScript that the plugin is asking browsers to do a POST for XMLHttpRequest, but after looking at my Apache logs, it appears as though Chrome is performing a GET for links that do not contain target="_blank".
This is where I think stackoverflow comes in: Is there a way (through another JavaScript applet?) to force Chrome to always do a POST so that those links are tracked?

Redirection and frames

I've been researching this topic for the past few hours with little success. I wish to redirect from the content of a frame, to the parent of the frame using php. .. The only reason I think it's possible is because I disabled javascript on my browser and phpMyAdmin was still able to redirect me when the session ran out of time.
I also realize it is most likely not possible, given that frames are a client-side thing, and php is not.
That in mind, I'm wondering how phpMyAdmin does it. I do not wish for js to be required for my web application.
If an iframe has links which looks like this:
Some page
it should work, as long as both pages or on the same domain.
Alternatively, take a look at this answer: How to force link from iframe to be opened in the parent window

how to open google links inside iframe?

i am trying to open a google search inside an iframe. it was working until recently but something happened.
this can be tested here: http://jsfiddle.net/patrioticcow/xTjyX/
i also added &output=embed at the end of the link, but it looks like it doesn't help.
in chrome i get: Refused to display document because display forbidden by X-Frame-Options.
but it doesn't work in Mozilla also.
any ideas?
thanks
The X-Frame option is a header sent by the webserver of the page you are trying to embed into the iframe. It basically tells the browser not to allow embedding the page in an iframe. Have a look at https://developer.mozilla.org/en/The_X-FRAME-OPTIONS_response_header for a more detailed description.
Obviously Google does not want you to embed it's search results into an iframe.
We are seeing the same problem - this time with google in a standard frame. It was fine a couple of months ago, now it's not working. I think that Google just changed the rules... Not a very open thing to do.
I'd suggest that you run what was in the iframe as a separate child window or new tab - not sure if this will give you the result you wanted.

Categories