I'm using Divi Wordpress and I wanted to add some extra markup. I added the extra markup in header.php but It's not appearing in any other page other than the homepage.
I went ahead and modified the other files (index.php, single.php, page.php) but nothing is happening.
Funny thing is that I searched the files for the current markup that is generated. I found a couple of files and modified them but nothing. I even deleted those files but nothing is happening!
How the hell is Wordpress generating that markup if it has no files that contain such a markup?
The homepage immediately knows that something is wrong (no files) but the other pages are not.
If I delete the whole divi folder, the css is gone but the markup is still generated by some divi files.
What black magic is this :)?
And yes, I forced refresh, tried another browser and restarted XAMPP.
I found the answer myself. The wordpress installation was cloned from a previous one. It seems that the files were used from that installation, so I could edit the php files untill tomorrow. Strange!
Related
I am working on a project for my client. I was editing the page with WordPress Gutenberg editor and when I clicked Edit in WordPress the website home page was broken and I could no longer fix it.
I tried these approaches:
Tried reinstalling the theme
Checked the code for error but could not find anything.
Looked into the browser console for errors and found these files are missing bootstrap.min.js.map popper.min.js.map style.css.map bootstrap.min.css.map
I checked other pages on the website but they are working fine even if some of these files are missing.
Installed this theme on my localhost and then tried to copy all the theme data into this one but it messed up the code even more.
Now I am not sure why do I have this issue suddenly on my website but I can't seem to find a solution for this.
Please check out the links below:
(the broken page) https://cmedia.host
(Page that is working just fine on the website) https://cmedia.host/nom-de-domaine/
Can you please check and help me fix the issue here?
What worked for me was to redo the same steps. It looks like Gutenberg was missing and when I tried editing the page using Gutenberg, it broke the code.
Then followed the same steps and tried to redo the steps using another editor and it was fixed in a second.
Editing wordpress page or posts with a different editor (i.e. using theme editor and then Gutenberg or vice-versa) is known to generate this type of issues. Try to edit it again with the original editor (Gutenberg) that should fix it.
lately, my WordPress sites have been hacked, a lot of popups were showing, due to a PHP code inserted in functions.php of every theme used. I deleted it in every page, but one of them is not working. The website doesn't show up in the browser, and the functions.php file is missing in every theme installed in it. I tried to upload the backup file but still, it disappears. Does anyone have any clue what's happening?
So I'm a developer trying to help out a non-profit that has a site in wordpress. The Wordpress version is a little out of date (they don't have 4.7.1).
I updated some css in one of the theme files (a small change, just wanted to see if I could make a change happen before I went in and did larger changes). I pressed update file and everything seemed to be ok.
I then checked the website, and the change had not propagated. I then went back to check the css if I'd made a mistake..but then I saw this-
There's no CSS!??
But when I go to the site, the css is still there and the theme is still applied.
What is going on?
EDIT
These are the other themes?
I have also pasted a backed up version of the CSS - got a message saying the file was updated...but nothing happened. Why?
Also why am I getting downvoted? I followed exactly what wordpress expects me to do and the behaviour is totally unexpected.
I'm having a serious problem. I have wordpress 3.9 installed on my server. the problem is that my website front end loads good, but my back end just loads text :
I have updated/reinstalled wordpress but nothing has happend. What should I do?
Thanks for help.
I'm 100% sure that if you simply do the following, you'll figure out what's wrong and fix it.
Deactivate all plugins without use of your WP-Admin.
Activate them, 2 or 3 at a time, and determine which plugin is the culprit
If none of these plugins are the culprit, go to the WordPress site and download WordPress. With an FTP utility such as FileZilla or another client if you already have one, then upload the entire wp-admin folder to your server, overwriting older files.
Your WordPress admin will be fine after these steps. And of course, never alter any core WordPress files -- ever. The only files you should ever tinker with are files in your child theme, which is something you should be using.
Would be great to have a bit more information about this topic. First of all: Is this a new problem respectively did the admin run without errors before? (3.9 sounds like the page is not a new clean install).
Usually I would start debugging the page via e.g. firebug => Check the Stats of the CSS-Files.
If they load correctly (200) check if they are empty or incomplete (Incompleteness can be checked via diff against the original file ... most IDEs will handle that for you)! If they aren't you have probably just diabled CSS in your browser for the URL of the admin-panel.
If they don't load, try to check why! If the files exist its most probably an error in your .htaccess (wrong rewrite, blocked directory, etc.).
I'm trying to activate a Wordpress theme but all I got is a blank page, also the admin page goes blank.
Version of WP is 3.9.1, Mysql 5.1 compatible and PHP 5.2.4 compatible too with WP. The theme in question is MH Magazine and I have it in another server with the same configuration and is working ok.
Even I tried to do a backup of the working site and place it in the production server and still goes blank.
I tried uploading the max_memory_limit in php and no luck. Error log and show php errors doesnt show anything, when I check only says the site name HTTP 1.1 500 - If I set wp_debug to true says HTTP 1.1 200.
File permissions are ok too.
A SIMPLE FIX FOR NON TECHIES (Like me really)
Loads of forums recommend various code changes and things to try, non of which worked, so I logically worked through the process more simply and solved it myself (in my case). White screen for everything, including front end and Admin. I tried everything going!
Essentially I'd asked Wordpress to link to a theme, which it did, but now I can't change it back. As it wouldn't automatically switch back to default themes, as suggested by others as a result of simply deleting the theme folder via ftp, I would have to force that myself. Without access to the admin panel, how would I change the link (easily)?. Well I can't, so instead I need to force the change of what it links to instead!
In the end I basically logged in via FTP, went to the wp-content folder, then to themes, located my list of theme folders and changed the theme folder name of the one recently selected and causing the issue, by just adding an x at the end (random letter). Then I changed the theme folder 'default' to the name of the theme which was causing the issue, then refreshed my site in the other window, at which point it displayed again. So the hard coded link never changed, but the basic files it links to now have.
The site was now back up, thank god! I then logged into the Wordpress admin panel and updated my version of Wordpress, as to be honest it had been a while and it was a little out of date, so a likely culprit for the cause of the error. Once updated, I then went back into the FTP window, renamed the folder back to 'default', and then removed the 'x' character from the end of the actual theme folder that I wanted to use. And ta dah, it now works beautifully with the theme I wanted! Without any fancy code changes or messing around with reinstalling or removing etc. BOSH!!
Hope this helps a few people out. (obviously it's different strokes for different folks)
To get this out of comments --- this is a community wiki answer.
Are your two servers running on the same platform (Linux? Win?) or different ones?
Do you have the same collection of plugins on both platforms?
Here are some things to try.
do View Source on your white screen of death and see if there's anything in the source view that can help you diagnose your problem.
deactivate all your plugins, then try the theme.
if it doesn't work, then this theme is broken on this server setup.
reactivate the plugins one by one. One of them will probably give you the white screen of death. Then you know that plugin is incompatible with that theme.