Firstly I'm not a web developer! My site was created by a company that is no longer in business, so I have access to the admin page to add content, but know nothing about the back end.
I have been asked by an SEO company to add Google analytics, when I tried to add the script.../script to my footer, which is included in all pages, it shows up in the page source of a web browser, but does not run, and Google tells me it's not installed.
Is there a way to add either a script to via the admin tool, or a < ?php include_once("analyticstracking.php") ?>
If the latter, into which directory should I ftp the analyticstracking.php file?
First of all, if it shows up in the page source, you are halfway there. You just probably did not copy-paste it right. Try copying the EXACT code in google analytics, put it in the footer and try again.
The include functions won't do anything different than putting the code straight in the footer.
Note that you need to have some visits on the site so that GA knows the script is installed.
Related
I have just downloaded wordpress from wordpress.org and installed it on my hosting. Then when my site has already saved and published, when I open it from another phone and computer I get the pop-up advertisement in top-right corner. I created the site without any free themes that might have ads. I use wordpress 5.2.3.
...So if someone had that problem too, please response.
I need the site immediately. I have never seen this problem before and on whole internet no answers about it.
That does not sound like a problem created by wordpress.
You could try renaming index.php to index.bak and create an empty index.php. If you open the new index.php an the ad still appears, at least you will know the problem does not lie within wordpress‘ code.
While troubleshooting my site I have ran into this error.
"This page is trying to load scripts from unauthenticated sources"
I am slowly learning to head to the Google developer console, which I found...
(program):1 Mixed Content: The page at
'https://www.thepixelfoundry.net/main/' was loaded over HTTPS, but
requested an insecure script
'http://api.sitestate.ru/scripts/stat/sitestate.js?r29'. This request
has been blocked; the content must be served over HTTPS.
This is my first Wordpress theme, as I built this page in order to better learn Wordpress. I have no idea what i sourcing that script.
I have checked my:
functions.php
header
footer
index
when I googled the scripts domain as the .ru already raised a red flag I received a warning from google questioning my computers recent traffic.
now im terrified....
How can I find this script? I have also installed Sucuri on the Wordpress side...and everything seems clean with a scan.
I got the same error in console, after I installed Ace Stream Web Extension
If you are working with it on remote server, then download all WP files and folders to your local machine and use "Search from all files" function. It is included in most text editors (Sublime, Notepad++, Brackets, etc.). Then you can track where this code comes from. When it comes from certain plugin you can disable the plugin. Or just remove that code.
But you should search, where that code get in your WP in first place. Is it some uploaded file that's supposed to be filename.jpg but is filename.jpg.php or comes from plugin or theme.
(I'd comment it but too low rep :/ )
Some background. I am using XAMPP on my laptop as a standalone, single-user server. I have a PHP/Ajax/JavaScript application that to all intents and purpose is a contacts and contact management system.
At the moment, web links are linked to the records as they are displayed to provide relevant content which the user selects by clicking the hyperlink. I would like to have the ability to include file links as well. So to my question:-
I have a file URL of the kind file: ///G:/home/scans/passports/tony0001.pdf which works as expected when typed into the address line of Firefox and Chrome, i.e. it fires up Adobe Reader and opens the PDF file. I use PHP to generate the relevant anchor statement using the information retrieved from the application. I give the href below:
href=file://G:/home/scans/passports/tony0001.pdf
The link does display as a URL and if I hover the cursor over the link it shows the correct File URL. If I click on the URL nothing appears to happen. I don't see any error messages.
So, my question is, is there a PHP.INI option I need to set to allow this? The functionality I am looking for is to be able to embed any sort of URL into my application and have it fire up the right handler and file.
I understand the point made regarding a potential security issue, but as I explained, I can type the file URL into the browser page and it opens as expected.
Update 16/10/15
The solution to this is to embed a windows shortcut which points to the target document in the xampp/htdocs directory (or a sub-directory). The links then work correctly using the very simple form of href=tony0001.pdf
Browsers disallow local file access such as file:// because it would be a security risk.
My client has a website built using open cart 1.5. He wants me to create a folder inside of it and make a test website using the existing site. I copied everything from the live site and pasted it inside a folder in the live site. Every link in the test website is similar to the links in the live website.
href structure of the live: href="www.site.com/resources"
href stucture of the test site: href="www.site.com/folder_name/resources"
I noticed that when I clicked on a link in the test website, it redirects me to the live website even though I changed the link's href to something like this: href="www.site.com/folder_inside_the_live/resources".
Why does opencart ignore the /folder_inside_the_live/?
I noticed that the live site has no .htaccess and I am afraid to create one as it might affect the live site entirely.
If OpenCart has an installer, you may wish to check for any config/settings files, where it might have set-up the base for links. Reading this OpenCart docs page, it looks like these config files are at /filePathToOpenCart/config.php and /filePathToOpenCart/admin/config.php. Have a look at those, and see if they contain anything that could help. They are most likely just storing database names/passwords, but it is probably a good idea to check it anyway.
So I accessed my company wordpress files through ssh on my command line and I have them pulled up and need to make a few landing pages. Im in QA. How do I create new pages? So i tried to create a new page in my WP admin panel but the new page's id isnt showing up in my terminal with the rest of the files. I know I am missing a step and maybe you need more information from me but any advice? And I am trying to get it in my terminal because I need to just make a landing page and I dont want to build it inside my admin panel I dont know how the previous guy did the current templates.
Typically changes to Wordpress are done within the admin section through a GUI. This is because Wordpress creates pages and posts by writing to the database. If you are dead set on using command line, however, I would suggest taking a look at WP-CLI. It is an interface library that allows you to do most Wordpress things without a browser.