RossMitchell
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: A better way to write codeI have done things very much like this.
Instead of putting the code and registering the shortcodes in your theme’s functions.php I put mine into a plugin file.
I have also on occasions put code into page templates, this let me link displays and lists of data in body text and widget areas.
All these techniques work, some require different programming approaches. Some have different implications of entangling themes with functionality.Forum: Fixing WordPress
In reply to: Connecting To Loan Company APIYes, easy to do.
You put your code into a plugin and access it using shortcodes.
This plugin has examples of using forms to capture data that gets submitted to the server, in your case this would be the API.
https://wordpress.org/plugins/wp-csv-to-database/
Using shortcodes here:
https://codex.wordpress.org/Shortcode_APIForum: Localhost Installs
In reply to: Site not externally accessableYou can use the same domain name both internal and external.
The external is already done.
For internal you need the web server to have a fixed IP, most routers have the ability to permanently assign an IP address to a MAC (say it is 192.168.0.33). Then in each computer on the internal network that needs to access your WordPress site, you add this to their “hosts” file
details on precise location here: https://en.wikipedia.org/wiki/Hosts_(file)
The line is like:
192.168.0.33 yourdomain.comJust another option.
- This reply was modified 8 years, 2 months ago by RossMitchell.
Forum: Installing WordPress
In reply to: subdomain WP installThe only remaining option is to put the club onto a subdomain, but this would cloud the value of your own URL and your brand.
One option is to host at wordpress.com, starts at free, you can also use a regular domain name. I understand there are several levels, some free with obligatory advertising, to paid with no adds.
All in all the cost of hosting is pretty negligible.Forum: Localhost Installs
In reply to: Error install pluginIt is usually inappropriate to post large slabs of code, please see the forum guidelines.
Have you been able to install other plugins ?
What does the webserver error log say ?Suggest that you install the plugin manually. It is common for localhost installs to not have the file permissions to write to their own files, this is often not worth the trouble of fixing, rather you just manually install and update core + themes + plugins.
Forum: Fixing WordPress
In reply to: Site did work, now CSS missing and links brokenYou can revert the settings changes you mad on site address and wordpress address by adding lines like these to your wp-config.php:
define('WP_HOME','http://example.com'); define('WP_SITEURL','http://example.com');Then you need to go through the “moving WordPress” procedures detailed here:
http://codex.wordpress.org/Moving_WordPressForum: Installing WordPress
In reply to: subdomain WP installBy all means share out your surplus hosting.
What you should do is have the club register a new domain name, and make it an “addon domain” within your hosting manager, give it its own directory and not a subdirectory of your prime site, cPanel wants to give you a subdirectory, but you can just edit the suggested text. Make sure you setup the site with new passwords and don’t reuse any of yours. You will also have to manage their email if they do emails under the new domain, you cannot share the cPanel login but you can give them their own WordPress website with admin login, you can also give them a limited FTP login to manage the website if necessary.
Forum: Fixing WordPress
In reply to: Rename pages without breaking linksIf the internal links were created within WordPress mechanisms, such as in menus, then WordPress will look after them. On the other hand, if you as the author put links into a page or post, then they will have to be fixed by you.
So install a plugin called “Broken link checker”, set it to check internal links, do a run before changing your titles and fix what you find, change your titles and then do another scan, ther is a “scan now” button in the plugin settings, it will find the places where you need to fix things. After you have done this you can even turn off the plugin, or maybe have it run every week, it makes busy work on the hosting computer and as a result some hosting companies hate it.
Forum: Fixing WordPress
In reply to: Question about themesIt might help if you gave us a link to your site.
What I would do is to use the Inspector in firefox, it has a “network” tab, switch to this and load one of your typical pages, it will show all the resources, their size and load times, this will let you asses why your pages are slow and what resources it imposes.Forum: Localhost Installs
In reply to: Uploading localhost site to serverYes to using duplicator.
Of course you do have a database in your localhost website.
To the degree that you can, massage your page names and permalinks so that they match those from your old site, this way you will keep their google “link juice”.
For the links you can’t match this way you can put redirects into your .htaccess file, in these cases use the same link in your menus etc as custom URLs so that you don’t have identical pages with different URLs.Forum: Localhost Installs
In reply to: How to download WordPress websites from Godaddy server to local PCThere is only ONE “000-default.conf” file on /etc/apache2/sites-enabled/
Yes, there is one file, it can contain the configuration blocks for LOTS of websites, all working independently. If the a file gets too difficult to manage then you can create more files like “001-default.conf” and “002-default.conf” etc.
Please confirm:
– you have site address and wordpress address set to: “http://cuisine.satimis.com”
– you browse the site from: http://localhost/cuisine
Please, please don’t reply till you have checked these two datum.
Then go into one of the pages with your browser inspector and give me the whole line that loads the “style.css” file.Forum: Installing WordPress
In reply to: Installing WordPress for Intranet use onlyYes Xampp would be a good start, go for it.
Forum: Installing WordPress
In reply to: Installing WordPress for Intranet use onlyYou will need the assistance and active participation of your server administrator.
Forum: Fixing WordPress
In reply to: Removing padding from imagesI stand corrected, it is hosted at “Unified Layer”
Forum: Fixing WordPress
In reply to: Replace image on several pages with PHP or CSS?You could run a filter that recognizes when the “body” is for class “page-id-37” and in this case do a text replacement on the image name. But I don’t like this technique at all.
A better way is to get rid of the slider, and instead set background images on the div with id of “herowrap”, so in your customizer > additional css, you would have
for your regular pages, and a selector running off the body class for the specials:#herowrap { background-image: url("https://holdersecurity.com/wp-content/uploads/2016/08/holders-slider-template-1.png"); } .page-id-37 #herowrap { background-image: url("https://holdersecurity.com/wp-content/uploads/2018/03/holders-slider-template-2.jpg"); }Your big block of html in your original post would become:
<div id="herowrap"> </div>