DesignSmoke
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: My website will break?Changing the PHP options shouldn’t cause any problems but using a later version of PHP may break some plugins. Take a backup and you’ll be able to revert if there’s any problems. You will absolutely want to change post_max_size regardless, as 2MB is usually too low.
You can replace the original .htaccess code with this code, for example. It will redirect you if you have a cookie named “*wordpress_logged_in*”, which is automatically set by wordpress (but can be easily created, so it’s not 100% secure).
RewriteEngine On RewriteCond %{HTTP_COOKIE} ^.*wordpress_logged_in.*$ [NC] RewriteRule ^resources/?$ https://external.com/direct-download-link1 [L,R=301]
- This reply was modified 5 years, 6 months ago by DesignSmoke.
Option 1:
In PHP you can do a check for is_user_logged_in() and only display the content if it returns trueOption 2 (insecure, but may work for you):
You can check for the existance of a wordpress login cookie (however this will not be validated and can be easily spoofed – should be fine for less secure files)
RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in.*$ [NC]
Credits: https://wordpress.stackexchange.com/a/285311Forum: Fixing WordPress
In reply to: www.ads-software.com Interface exchange with WordPress.com InterfaceAre you using Endurance as your web host for evergreenpearl? If so, the content shouldn’t be linked to wordpress.COM in any way. You may use www.ads-software.com as your wp-admin login, but it’s only used for authentication. Let me know if I got something wrong or misunderstood.
Forum: Fixing WordPress
In reply to: My website data is not showingThere’s nothing we can do here to help you. However, you can contact 000webhost and see if they have a backup. They may have deleted your site for violating their Terms of Service.
Forum: Fixing WordPress
In reply to: WordPress Export/Import adds extra characters to post recordsJust checked and it looks like there’s a bunch of \u00a0 (no-break spaces) in your excerpts. You may be able to use a search+replace plugin and replace every single instance of <copy-paste the invisible character> in the database with a blank string, but make sure you take a backup first.
Forum: Fixing WordPress
In reply to: Link to media is not working for gallery images on mobile devicesHere’s a (slightly working) fix. Add this wherever you can add CSS.
@media only screen and (max-width: 720px) { li.blocks-gallery-item figure figcaption { padding: 0 !important; } }
Explanation:
The figcaption element is overlayed on top of the image. However, when it’s clicked, the lightbox will not show – this is a problem with the plugin or theme and will need to be fixed by that author. The reason why it doesn’t work at all on mobile is due to the size of the padding on the image title – it completely covers the image. By reducing the extra padding, the image becomes mostly usable on mobile.Forum: Fixing WordPress
In reply to: Exporting/importing individual pagesForum: Fixing WordPress
In reply to: 5.2 Update – Avia Layout Builder/ Gutenburg Not LoadingYou should try the Avia Builder support forum for help with their proprietary builder https://kriesi.at/support/forum/enfold/
Forum: Fixing WordPress
In reply to: Anchor Links Not Working / WP FullpageIf it’s this plugin https://www.ads-software.com/plugins/wp-fullpage/ then it may just be a compatibility issue. That plugin hasn’t been updated in 3 years.
If you’re capable of debugging, I get this error when clicking on links:
Uncaught TypeError: Cannot read property 'setAttribute' of undefined at Object.onLoad (popper.min.js?ver=5.2:4) at popper.min.js?ver=5.2:4 at Array.forEach (<anonymous>) at new t (popper.min.js?ver=5.2:4) at l.toggle (bootstrap.min.js?ver=5.2:6) at HTMLAnchorElement.<anonymous> (bootstrap.min.js?ver=5.2:6) at HTMLAnchorElement.dispatch (jquery.js?ver=1.12.4:3) at HTMLAnchorElement.r.handle (jquery.js?ver=1.12.4:3)
Forum: Fixing WordPress
In reply to: “database needs to be updated” — catastrophic errorIt could have been due to a theme update (or getting disabled), which would potentially “remove” pages if they were custom post types.
Forum: Fixing WordPress
In reply to: Site disappearedWordPress is just a piece of software – nobody on WordPress has access to your site in any way and cannot delete your content.
First, see if your webhost has backups – if not you can try seeing if there’s anything you can recover from web.archive.org or you can go on google and search for
site:the-style-edit.co.uk
– on some results there’s a little green arrow, click that, then click “cached”.Forum: Fixing WordPress
In reply to: Two pages showing up on google search engineWhat have you recently changed with your website? As for penalties, you do not receive a penalty for duplicate content – typically one of the pages just won’t be displayed in the results. Also, those pages have completely different content, so it’s working as intended.
What does your google webmaster look like?
Forum: Fixing WordPress
In reply to: Featured Image Alignment Issue (Only on vertical mobile)You can try this (tweak as needed). The reason it’s left aligned is due to the width and max-width and the float:left on #featured-thumbnail.
@media screen and (max-width: 640px) { #featured-thumbnail { max-width: 100% !important; width: 100% !important; } }
Forum: Fixing WordPress
In reply to: Problem with returning value from shell_execIt might be easier to just check that the MySQL module is installed in php, as it relies on MySQL in the first place:
eg:
function_exists('mysql_connect')
or
extension_loaded('mysql') || extension_loaded('mysqli')