My friend asked me if i could add a little piece of code to his website, his website is running on the eZ Publish platform which i have never actually used before.
I have spent the last few hours trying to figure out how to edit the header of the template for his website http://tenantstips.com/.
From the Admin/Design area i can see an option to add code to the footer of the page but not the header.
I have also tried finding the header file from within the FTP files and can't seem to see it.
If anyone is good with this platform and can help me add a little piece of code to the header of the above website that would appreciated thank you.
You'll have to edit the files to do that. You can try via the design section in admin (depending on filesystem perms) but the best option is to edit the files via ssh or ftp.
Related
I have a site with WordPress using WooCommerce, that I want to make as api for my React app..
I have understand that I need to add some Code Lines at the server code (wp content).
But I didn't understand which is code in which file of the server??
I have seen a lot of functions that "I need to put in my Functions.php" but none of them take care of the problem..
Someone can help me?
what is the missing code?
where do I paste it?
What I do wrong?
The files
I have a huge problem with my wordpress dashboard display. After I upgrade to wordpress 4.5 my dashboard gone crazy.... its seems like it is not displaying css correctly. Its really killing me cause I could not write any article ...which very bad for my website. My dashboard looks like:
This is what seems to be the problem:
I tried everything. First I thought that is might be chrome's problem. I deleted history/cache ...etc. Not working. Then I deleted chrome and reinstalled it. Not worked. Then I used firefox, opera,internet explorer ... not worked. I put one friend of mine to look... it seems also the same to him. Then, I deleted wordpress 4.5 core file (wp-admin, wp-include) from ftp and installed back wordpress 4.4.2 and it looks the same..... I'm really desperate. I sought help on wordpress official website.... nobody helped me.... its crucial for me to solve this problem I really live with site's help. I really don't have any idea to solve it. This is killing me :(.
I appreciate any help.....
Add below code in wp-config.php file of your WordPress.
define('CONCATENATE_SCRIPTS', false );
It should solve your problem, you can read more details on below link.
http://manovotny.com/fix-wordpress-admin-styles-not-loading/
jQuery is not defined errors usually indicate that jQuery hasn't been loaded at all, so then other scripts that depend on jQuery being present throw the error.
Where are you loading jQuery from? According to this issue someone had a problem where they were including jQuery from Google's CDN, and WordPress was trying to load a version of jQuery that wasn't present in Google's CDN.
A link to your site would be helpful - it's difficult to determine what all is going on from only that screenshot.
It also looks like your site isn't loading any of the CSS for the admin area. Have you doublechecked your WordPress address and Site Address options in the admin?
This might also be set in your wp-config.php file:
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
If your WordPress Address (which is the same as WP_HOME) setting doesn't match the URL with which you're trying to access the WP admin area, then you'll see symptoms like your site is exhibiting, where CSS doesn't load properly and some javascript may be missing.
One more suggestion: try activating a different theme temporarily (such as Twenty Fifteen) and see if that fixes up the WP admin. You may have a conflict specific to your current theme package.
Take care of adding define( 'CONCATENATE_SCRIPTS', false ); at the top of declarations, after comments.
First off sorry for being a complete newb and if this is a something I shouldn't be bothering people with, but I am fairly new to PHP and I have been tasked by my employer to make a couple of changes to a website that seems to be written primarily in PHP.
The website is ems-uk.co.uk
I have been asked just to check the location on the maps that display on the pages but I can't for the life of me find the file to edit within the file manager. I can find exactly what I need to change when I "inspect element" in Chrome but cannot find anything even close in the index.php file and there appears to be no other files for separate pages.
Hope someone can direct me in the right area and sorry again if this is the wrong arena for a question like this.
A bit of inspection suggest this is an OpenCart powered CMS/ecom site with the Kuler Moment theme (skin 3). I'm not familiar with the OpenCart dashboard but you may be able to log in and configure the google maps module from there. Failing that I would look in the theme files for the location map section.
You're looking to it wrong. PHP is server sided, you're trying to edit things client side.
You will need access to the webserver and edit code there. If you're asking this I'm not sure if its good if you're editing pages on that website though.
I'm working on a project on localhost. Its kind of a company management application based on some php framework. Basically I'm a front-end developer and I've to fix some pages, their alignments and color scheme. I'm using firefox. Every single time when I've to change the settings of any page I've to go the php dev who built the app and they located file for me in the project, obviously they knew the file structure of the whole project. So is there any possible way, tool, addon or plugin that can identify the specific file (which is currently open in my browser) for me? so that I can reach the file on localhost directly and edit it right away rather than bothering the php developers all the time. Firefox inspect element can identify the css files though. Any help would be appreciated. Thanks
I have a magento theme installed on a folder: http://mysite.com/mag/
On the main folder, mysite.com it's running a website on Zen Cart, so I created a folder called "mag" where I installed magento.
It worked until now..
Only the first page is loading when I access mysite.com/mag/, but when I click on a diffrent page I-m sent to the index page from: mysite.com (and the url showed is: http://mysite.com/mag/page-like-this.html)
So where is the problem?
It worked before, and right now it doesn't work any more..
So as was discovered trough our comments you have most probably been hacked in some way. There are a lot of steps to go trough to clean a website and its impossible for us to tell you what to look for without knowing what kind of attack you where a victim of.
But, you can safely delete all those .html files since they should not be part of magento/zend framework. Also look for weird javascript that would be encrypted. One very long string of minimized javascript somewhere at the end probably of all the html files and probably your main index.php file.
There is a lot of ressources online to help you I suggest googling "magento hacked" or some such thing.
Good luck!
Here's a stackoverflow question about some such hacks on magento.