ksmales23
Forum Replies Created
-
Forum: Plugins
In reply to: [ShiftNav - Responsive Mobile Menu] Resize menu widthThe above is for when the menu opens from the right.. When it opens from the left it would be:-
.shiftnav {
width: 200px;
}.shiftnav-open.shiftnav-open-left #shiftnav-toggle-main, .shiftnav-open.shiftnav-open-left .shiftnav-wrap, .shiftnav-open.shiftnav-open-left>.shiftnav-fixed-left {
-webkit-transform: translateX(200px);
-moz-transform: translateX(200px);
-ms-transform: translateX(200px);
-o-transform: translateX(200px);
transform: translateX(200px);
}Forum: Plugins
In reply to: [ShiftNav - Responsive Mobile Menu] Resize menu widthJust had to do this for a client and couldn’t find an answer anywhere but figured out it is only a couple of CSS lines.
Just add the following to your themes CSS (replace 200px with width of your choice):-
.shiftnav {
width: 200px;
}.shiftnav-open.shiftnav-open-right #shiftnav-toggle-main, .shiftnav-open.shiftnav-open-right .shiftnav-wrap, .shiftnav-open.shiftnav-open-right>.shiftnav-fixed-right {
-webkit-transform: translateX(-200px);
-moz-transform: translateX(-200px);
-ms-transform: translateX(-200px);
-o-transform: translateX(-200px);
transform: translateX(-200px);
}Hope this helps.
Forum: Fixing WordPress
In reply to: SSL to api.wordpress.org not connectingDid you get to the bottom of this issue.. I have the exact same error and it only happened once I enabled SSL on the server.. Now the dashboard will not update plugins and also my SMTP plugin is broken and it all seems to be down to the server not resolving the addresses properly when SSL is enabled.
Forum: Fixing WordPress
In reply to: Definitive Answer for SSL Migration??Thank you Sam and Victor for your help. I think I now have the definitive way to convert an entire site to SSL without using plugins… I found that with some hosts just changing the urls in general settings causes a re-direct loop making the site inaccessible. The following process seems to work on all hosts I have tested:-
1. Change URL’s in WordPress general settings to https instead of http (this may cause a re-direct loop, if it does move quickly to the next step)
2. Put this at the beginning of your .htaccess file in the wordpress root directory:-
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://yourdomain.com/$1 [R=301,L]…And this at the top of wp-config.php file under the opening <php tag :-
if($_SERVER[‘HTTP_X_FORWARDED_PROTO’] == ‘https’)
{ $_SERVER[‘HTTPS’] = ‘on’;
$_SERVER[‘SERVER_PORT’] = 443; }3. You now need to change the urls of any media files that you have embedded in pages and posts from http to https. This can be done manually in WordPress admin or via the search and replace script that Viktor kindly pointed out earlier in this post.
I believe that this is all that is necessary and has worked with all my sites and hosts.
Forum: Fixing WordPress
In reply to: Definitive Answer for SSL Migration??In fact… if I put manual 301s into the .htaccess may website becomes in accessible with a redirect loop.
Forum: Fixing WordPress
In reply to: Definitive Answer for SSL Migration??It seems to have already taken care of redirecting http://domain.com to https://www.domain.com. Although I am not sure how any of the redirects are working as there are no .htaccess entries and I haven’t altered server config.
I would really like to understand the mechanics of how these redirects work from just changing the General setting in WordPress, as every page in my site now automatically redirects to the https version with no manual 301s necessary!
The problem with using the search and replace script and telling it to change all references of HTTP to HTTPS is that it will also change all links to external sites in pages/posts, which I don’t want. There seems to be no way to get it differentiate between embedded images and external hyperlinks.