RossMitchell
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Dynamic content templateIf I were doing this I would have javascript react to the drop down menu selection. Have all the different forms in their own hidden div with unique ID, have the javascript display the right one and hide all the rest.
I would suggest that you create a child theme and add develop your extensions there, details here: http://codex.wordpress.org/Child_Themes
Forum: Fixing WordPress
In reply to: Best way to theme in WPWelcome aboard.
1.1
Building a custom theme is by nature (and your choice) very low level, you are responsible for everything, consequently I have never done it.
Rather the WordPress way is to choose a theme well matched to your needs, then create your theme as a child theme of it. You can change a template by taking a copy from the parent and rework it without limit, such as change the nesting of blocks. Use the customizer to tune the css and move it to the child theme when it settles if you want.1.2 Never had any need for these.
Forum: Fixing WordPress
In reply to: Database errorAccess your website files. Use either FTP if you have it, or login to your website hosting management (probably cPanel) and use the file manager, either method will work.
Browse to the directory: “/wp-content/plugins”
Then rename the directory for this plugin from “pixelyoursiteprov611” to something else.
This will disable that plugin.
Once you are happy with how the site is working you may then delete the directory belonging to this plugin.Forum: Networking WordPress
In reply to: Unmap a siteYes you have misunderstood.
<sermon>As an aside in future please be sure to use the “code” setting to quote blocks of text so that unfortunate text changes do not occur.
In particular there are no “http://” stuff, the “hosts” file is about domain names, the “<letters>://” bit is about protocol (and ports) which is a different thing.</sermon>Your problem is that you want an expired domain name to map to your multisite server. What is the IP address of this server ? (If it is localhost then it is 127.0.0.1) for the sake of this tutorial lets say the IP address is a.b.c.d where abcd are all numbers.
From the webpage I gave you need to find where and what the “hosts” file lives on your OS.
Using a regular text editor (not WORD or some wysiwyg) add this line:
a.b.c.d photoclubmeteorite.patbell.co.uk
And save it.
This will tell your browser that the website: “http://photoclubmeteorite.patbell.co.uk/” is to be mapped to IP address a.b.c.d
The request will arrive at that server just like any web request, the server will not know that the DNS system was not consulted, nor that the name is expired.Though I have never experienced this I understand that the chrome browser on mac OS does not use the hosts file. So in this case you would have to do something different.
Forum: Fixing WordPress
In reply to: Make header smallerPlease “goodsuccess” follow the forum guidelines and create new thread for your question, you will get many more responses that way. As it is most of the assistants here will never see your question above because mostly we look at new threads and leave old ones to the people already participating on it.
Your image looks reasonable to me. Have you asked in the support forum for your theme ?
Forum: Fixing WordPress
In reply to: Make header smallerYou need to change the CSS, the easiest way to do this is using the customizer.
Login to your WordPress dashboard, view your page, and in the top admin bar pull down customizer and click on additional CSS, add this code, and reduce the padding and margin values to suit:.header-wrapper { padding-top: 45px; padding-bottom: 36px; } .custom-logo-link { margin-bottom: 18px; }I found these using my browser inspector.
Forum: Networking WordPress
In reply to: Help with 2 sites in subdirectories on 1 domainThe “site address” and “wordpress address” both need to have the url+subdirectory in their entries.
This doc is relevant:
https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
This may also help:
http://codex.wordpress.org/Moving_WordPressIt seems that your machine does not respond to its own IP address, curious.
Only solution I can see is to use the VirtualHost method, I think this is well worth the effort.
Almost certainly this is because you have used “localhost” in your siteaddress and wordpressaddress. Your page uses this to describe where the browser is to find css and image files etc, from your own PC this is all correct, but from other machines on the LAN it tells them to get the file from that computer and not the one with the XAMPP hosted wordpress.
The easiest solution is:
– make sure your XAMPP computer always has the same IP address on the LAN, and use this IP address in the siteaddress and wordpressaddress settings.Otherwise you can configure your XAMPP site to use the “VirtualHost” method and use a domain name in the VirtualHost config block and also in your siteaddress and wordpressaddress settings, and also add this domain name and your IP address into the “hosts” file on each computer. Relevant docs are:
http://httpd.apache.org/docs/current/vhosts/name-based.html
https://en.wikipedia.org/wiki/Hosts_(file)- This reply was modified 7 years, 9 months ago by RossMitchell.
Forum: Localhost Installs
In reply to: Simple website link in WAMPI don’t know enough people at my ISP to have the privilege of a fixed ip haha 🙂
Some ISP provide a fixed IP, some for an additional fee. For many others it is simply not available, in these cases some routers can be configured with one of the dynamic IP solutions.
Regarding the “very few people do this”, did you mean that it’s better to rent some cheap hosting for the blog?
Yes, cheap shared hosting is what most people do.
Having your PC accessible with SMB and torrent is a limited exposure, it is on a different scale to inviting the world to scan your server via a domain name.Forum: Localhost Installs
In reply to: Simple website link in WAMPYes, virtualhost can be accessed from outside. From the local LAN you can put the hostname and the ip address of your “home PC” into their hosts file. From the internet you would setup port forwarding in your modem/router to forward port 80 from the internet side to your “home PC”. The traffic would arrive at your modem either using one of the dynamic IP solutions, or if your ISP provides you a fixed IP then you could put it into the DNS system, or have people put it into their hosts file.
Details on hosts file here:
https://en.wikipedia.org/wiki/Hosts_(file)The question remains as to why you want to make your PC accessible to the internet, very few people do this.
Forum: Networking WordPress
In reply to: Unmap a siteIf you put the lapsed domain name into your hosts file, then the hosting will not realize that the DNS system is not being used, it will just respond.
Details on the hosts file here:
https://en.wikipedia.org/wiki/Hosts_(file)Forum: Fixing WordPress
In reply to: Header Logo SpacingWithout being able to see your actual site it is not possible to be certain, but the demo site you did post uses:
.mainmenu-area .logo { display: inline-block; padding: 3px 40px 0 30px; }You will be able to answer questions like this once you become familiar with using your browser’s “browser inspector” and both manipulate the CSS live there as well as in the “costomizer”.
Forum: Developing with WordPress
In reply to: Maximum number of additional arguments to meta_query?Another solution would be to hard code exceptions for the NYC codes and either limit the search radius or return a custom written one.