AFS_website
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Twenty Seventeen] Setting a different header image for mobile?Fixed with this in funtions.php
function custom_header_image_tag( $html, $header, $attr ) { if(strstr($_SERVER['HTTP_USER_AGENT'],'Android') || strstr($_SERVER['HTTP_USER_AGENT'],'webOS') || strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') ||strstr($_SERVER['HTTP_USER_AGENT'],'iPod') || strstr($_SERVER['HTTP_USER_AGENT'],'iPad') || strstr($_SERVER['HTTP_USER_AGENT'],'Windows Phone') || wp_is_mobile()){ $html = "insert custom header image tag here"; } return $html; } add_filter( 'get_header_image_tag', 'custom_header_image_tag', 10, 3);
Forum: Plugins
In reply to: Simple "Exit Intent Popup" Plugin?Update: I’m getting somewhere with a plugin called “Uji Popup”.
Forum: Plugins
In reply to: Simple "Exit Intent Popup" Plugin?Simply, I’m looking for a free “Exit Intent Popup” plugin that, instead of harvesting email addresses, allows me to have a Contact Form 7 form appear on “exit intent”.
At the moment I’m not sure if such a thing exists.
Forum: Fixing WordPress
In reply to: Fatal Error: Allowed memory exhaustedI ended up removing a few non-essential plugins and the issue resolved.
I guess in the future when I’d like to use more plugins I’ll need to come up with a better fix…
Forum: Fixing WordPress
In reply to: Change domain – everything on same server, only change domain.This is what I did – it seems to be working perfectly now:
I changed the domain in wordpress to the .au, then did this in .htaccess
Options +FollowSymLinks -MultiViews
RewriteEngine on
# if requested hostname is non-blank
RewriteCond %{HTTP_HOST} .
# and if requested hostname is NOT “www.newdomain.com.au”
RewriteCond %{HTTP_HOST} !^www\.newdomain\.com\.au
# redirect to same object in correct domain
RewriteRule (.*) https://www.newdomain.com.au/$1 [R=301,L]Thanks for everyone’s help though!
Forum: Fixing WordPress
In reply to: Change domain – everything on same server, only change domain.Thanks juslooken. I know I can do that, what I am more concerned about it losing the deeper links for example mysite.com/example –> mysite.com.au/example
Is there a plugin that automatically generates 301 redirects?
Forum: Fixing WordPress
In reply to: Change domain – everything on same server, only change domain.I already have both domains, i just need to be using the .au, not the .com as it currently is.
Forum: Fixing WordPress
In reply to: Change domain – everything on same server, only change domain.I haven’t changed anything yet, I’d like to know how to do it without breaking anything and having all the 301s working.
Forum: Hacks
In reply to: Submitting pages via phpmyadmin import?…sorry. I actually thought that because what I wanted was so far away from normal WP usage that there wouldn’t be a plugin for it, so I didn’t even bother looking. Now I feel stupid.
Thanks!
Forum: Fixing WordPress
In reply to: Site not loading at all on mobileI cannot find anywhere where the redirect is coded, but it is obviously something to do with mobile detection because it works perfectly on desktop. Can anyone please suggest where I should look for this redirect? Thanks a lot.
Forum: Fixing WordPress
In reply to: Site not loading at all on mobileActivating a 20** theme works. Where could the redirect be? I’ve replaced the .htaccess
Thanks