jtrost
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Mobile Detector] Revert to DesktopIt seems this plugin uses cookies to set mobile/desktop sites, which seems kind of complicated. Here’s what I have come up with, but it seems to only work on mobile devices:
In functions.php, add:
[Code moderated as per the Forum Rules. Please use the pastebin]Then where you want the links to appear, enter:
<a href="#" onclick="javascript:setFullSite();">Go to Desktop Site</a><br /><a href="#" onclick="javascript:setMobileSite();">Go to Mobile Site</a>
Again, this only works on mobile devices. Trying to click the links in Firefox/Chrome just reloads the desktop site.
Forum: Plugins
In reply to: [WP Mobile Detector] Revert to DesktopIs there a link that I can place directly in my code for this and to switch to the mobile version? I am building a custom mobile layout.
Forum: Fixing WordPress
In reply to: Not All Pages Showing up in Custom MenusThis was a while ago, but I believe I eventually just added the link in the navigation manually. You can use jQuery to select the menu, then append a new li element to it.
Forum: Fixing WordPress
In reply to: Form Action Always Shows 404 TemplateI just solved my own problem.
Turns out the name of the input field was the same name as a custom post type. So even though I am using post data, WordPress thought I was trying to access a post, not pass user input.
Forum: Fixing WordPress
In reply to: Form Action Always Shows 404 TemplateNo plugin. It’s just straight HTML. Here it is:
<form action="/" name="bid-form" method="post" id="bid-form"> <h3>Bid: <input type="text" id="the-bid" name="the-bid" /> <input type="submit" value="Place Bid" /></h3> </form>
[Please post code snippets between backticks or use the code button.]
Forum: Fixing WordPress
In reply to: Form Action Always Shows 404 TemplateThat’s the thing. The form action is the index page. All the form does is refresh the page with some post data.
So if I type in “mysite.com/index.php” I see my index page. However, when I have the form action as “mysite.com/index.php” it shows a 404 error.
Forum: Networking WordPress
In reply to: Multisite Not Recognizing My SubdomainsI was able to get my site running. Here are a few things things I did. I am not saying that they will help everyone, but perhaps if someone is experiencing the same problem as I am they can use these to help them debug:
-I had an htaccess rule that forced “www.” into the URL when it’s not present (i.e. if someone types in “mydomain.com” it will send them to “www.mydomain.com”). This is an SEO technique to avoid a duplicate content penalty.
-Make sure you do not have a redundant vhost name. I had https://www.mydomain.com and *.mydomain.com, but the latter covers the former.
-Remove DirectoryIndex from your htaccess file that also holds the WP rules. I used DirectoryIndex for some of my subfolders that were not using WordPress. Instead I placed htaccess files in each subfolder.
After clearing up these 3 things, the site worked fine.
Forum: Networking WordPress
In reply to: Multisite Not Recognizing My SubdomainsIpstenu – Neither multiviews or allow override is enabled on my dev server. Same with the live server. I tried enabling them, but that did not fix it.
Andrea_r – I have my own servers. Have you seen an error like this before on those hosts? If so, how did they fix it?
Also, the wp-admin page is a 404. That is the only page in the site that does not work.
Forum: Networking WordPress
In reply to: Multisite Not Recognizing My SubdomainsYes, all of the permalinks work and go to the correct pages.
Forum: Networking WordPress
In reply to: Multisite Not Recognizing My SubdomainsI realize my above description may be a bit confusing, so I made a test site on my dev server and live server and took screenshots.
Here is the dev site: https://i.imgur.com/wzjYB.png
Here is the live site: https://i.imgur.com/iRVPp.pngHopefully this makes my problem more clear.
Forum: Networking WordPress
In reply to: WordPress Multisite not working inside subdomainI created nested.sub.domain.com and pointed it to the sub.domain.com IP address, but when I access nested.sub.domain.com it takes me to sub.domain.com.
Forum: Installing WordPress
In reply to: Installing WordPress Alongside Another WebsiteThat page says that “This process is not applicable to and does not work if you have enabled MultiSite.” I am using multisite.
Forum: Installing WordPress
In reply to: Installing WordPress Alongside Another WebsiteWouldn’t all of my URLs read section.mysite.com/wordpres/page? I would like to keep WordPress out of the URL.
Forum: Installing WordPress
In reply to: Installing WordPress Alongside Another WebsiteCan someone please give me advice on this?
Forum: Networking WordPress
In reply to: Display Menu from Parent Site in Child SiteThank you! Works perfectly.