RossMitchell
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Site Health improvementSuggest that you report this in the support forum for the site health plugin.
Forum: Fixing WordPress
In reply to: I am facing plugin break issue again and againPlease give us more details, just what is the problem? It might be obvious to you but I don’t know what your problem is.
Also you give a gmail address towards the end of the page. A few things:
– using a free email address makes you look small scale, much better to have an email address at your domain name, you can still use gmail to handle your email.
– Install a plugin like contact form 7 to give your potential clients a form to fill in and you receive the details by email. Put this on a contact us page.Forum: Everything else WordPress
In reply to: Creating more than 1 web site with WP? How to set it up??This is what I do. I grant that it is possible to do some of the steps a little simpler, but the saving is limited, and detatches you from some of the basic toolset.
So if you don’t have an FTP program called FILEZILLA then get it and install it now. Setup the FTP or SFTP website access in filezilla.
– First you need to register your new domain name. I always register my domains at a distinct company from the hosting company, it gives me a bit more control if things go wrong technically or commercially.
– At your hosting company, set the nameservers as advised by your hosting company, some hosting setups require the nameservers to be set before they will accept an addon domain.
– At your hosting management set your addon domain, and nominate a new directory in your webserver root directory to receive the domain name mapping. Your primary domain maps to “public_html”, the addon tool will probably offer a subdirectory in public_html, but resist this default and remove the public_html part.
– Optional, configure the letsencrypt SSL certificate.
– Download the ZIP archive of WordPress files, expand it on your computer.
– On your website database manager (probably phpmyadmin), create your new database and also create a database user and password, make these distinct for each WordPress setup you install, don’t compromise the security and isolationm of your sites by sharing these. Keep a record of these.
– In your WordPress files, make a copy of the wp-config-sample.php file as wp-config.php, put the database name, database user and password into the config file. Optionally set the salt strings.
– Using FILEZILLA connect to your webserver and upload all of your WordPress files.
– Test your install by browse to: http://your new domain/readme.html
if it does not display then you have a problem you need to fix.
– Activate your WordPress install by browsing to:
http://your domain/wp-admin/install.php
or possibly https
follow the instructions.
– Optional password protect your website so that only you and people you authosise can see your new install.
– Install plugins and themes.Most of these steps are covered in more detail here in the 5 minute install instructions
http://codex.wordpress.org/Installing_WordPressForum: Everything else WordPress
In reply to: Creating more than 1 web site with WP? How to set it up??You have several options.
– You can setup a new WordPress in a subdirectory
– If your hosting facilitates it, you can create a sub-domain and nominate a new directory for it, and install WordPress there.
– If your hosting facilitates it, you can register a domain name and add it to your hosting account as an addon domain.Forum: Fixing WordPress
In reply to: Unwanted Spam Register user mail.Yes, updating your WordPress is an excellent aspiration, but I would not expect it to fix your problem.
One possibility is that the hackers are accessing your “xmlrpc.php” file.
Suggest that you look at the database “user” table and see exactly when these users are created. Go to your website access logs and find the entries that match these times.
What you find should direct your next steps.
Maybe you can block their IP address, block access to xmlrpc.phpForum: Localhost Installs
In reply to: uploading size – due “hosting provider”Please remember that after changing the .ini file settings that you must restart the webserver. With apache this is:
sudo /etc/init.d/apache2 graceful
Or just reboot.Forum: Developing with WordPress
In reply to: The top bar is too bigYou need to use your browser inspector to see how your website is using its CSS and HTML. Each browser has a browser inspector.
Once you have identified which aspects of your layout you want to adjust, the browser inspector will show you which elements are involved, and how the layout is being done, like is it margins or padding, etc.
Then you can use the WordPress Customizer> Additional CSS page to adjust the CSS.If you had given us your real website URL rather than a screenshot, then someone here would have been able to give you specific instructions rather than the general principles I have.
- This reply was modified 5 years, 1 month ago by RossMitchell.
Forum: Localhost Installs
In reply to: uploading size – due “hosting provider”You need to find the php.ini file that your webserver is using, and do the settings there.
On my Ubuntu 20.04 system I did:
sudo find / -name php.ini -ls
which gave me two hits:
/etc/php/7.4/cli/php.ini
/etc/php/7.4/apache2/php.ini
See what you find, make a safe copy of the files and make your changes.The 6th line of your phpinfo() dump gives me
Loaded configuration file: /etc/php/7.4/fpm/php.ini- This reply was modified 5 years, 1 month ago by RossMitchell.
Forum: Developing with WordPress
In reply to: Multiple shortcode is not working in foreachVery tidy.
If you have resolved your issue, could you mark this thread as resolved.Forum: Fixing WordPress
In reply to: Finding the footer widgetsI work with Linux (Ubuntu) and have a copy of my website files locally. So to answer questions like where is salmon_footer defined and called I do a recursive text search, the command is, when run in my top level directory:
grep -r salmon_footer
If you don’t have grep then you need to do whatever your system has instead.As a matter of file management and practical development, a theme function has to be in the theme files, (or child theme files), and just possibly in a plugin, there is nowhere else a developer can put it and expect it to work or to survive.
It is also just possible that you have a custom PHP thing in a plugin.As an elaborate workaround it is possible to do this text search on your hosting:
– One way is to use an SSH login, not always available, I have NEVER needed one.
– You can use your hosting’s CRON facility to run commands for you. Create a cron job to run once a year and scheduled a few minutes into the future, make the command as specified above. Wait for it to run and then disable it. Your command results will arrive in an email on your hosting management address.- This reply was modified 5 years, 1 month ago by RossMitchell.
Forum: Fixing WordPress
In reply to: Finding the footer widgetsIf it is not in appearance > widgets, then I would suggest that you look in your theme customisation.
Most likely in “salmon-child” you will find a file “footer.php”
Or someone may have used a hook or filter, most likely in your child theme.Otherwise use your browser inspector to find the CSS and HTML and text associated with your footer paragraphs, and search your files (themes and plugins), and database for them.
- This reply was modified 5 years, 1 month ago by RossMitchell.
Forum: Fixing WordPress
In reply to: pages redirecting to old domainI suspect that you do not understand how this support forum works, the volunteers here will assist you in fixing your own website, they will not and cannot fix anything.
It seems that you want to move your website to a new domain, this article will assist you:
specifically the section: Changing Your Domain Name and URLsForum: Developing with WordPress
In reply to: Multiple shortcode is not working in foreachThe two shortcodes are sharing the same object of class Shortcode_Handler, it has two fields which are updated in the foreach loop in your function cld_add_custom_shortcode, hence when the shortcodes get invoked only the last set values are there.
You need to create a new object for each shortcode and pass this distinct object into the add_shortcode function. This way the shortcode name is paired with an object that remembers the fileds for that shortcode.It is risky to edit your code like this, but I will try.
Note that the variables are now public.<?php /** * The shorcode handler class */ class Shortcode_Handler { public $field_array; public $form_id; public function cld_generate_form() { // Get form fields $fields = $this->field_array; $form_id = $this->form_id; $form = '<form id="'.$form_id.'" method="post">'; foreach ($fields as $value) { $form .= '<input name="'.$value.'" value="" />'; } $form .= '<input type="submit" name="submit">'; $form .= '</form>'; return $form; } } /* register the shortcodes */ function cld_add_custom_shortcode() { global $wpdb; $table_name = $wpdb->prefix . 'options'; $results = $wpdb->get_results("SELECT * FROM $table_name WHERE option_name LIKE '%cld_form_id-%'"); foreach ($results as $value) { $shorcode_tag_name = $value->option_name; $sc_object = new Shortcode_Handler; $sc_object->form_id = $value->option_name; $sc_object->field_array = maybe_unserialize($value->option_value); add_shortcode($shorcode_tag_name, [$sc_object, 'cld_generate_form']); } } add_action('init', 'cld_add_custom_shortcode');Forum: Fixing WordPress
In reply to: Making a child them out of a child themYou have a few options:
– Make a copy of the child theme, change its name so that the auto-update mechanism will not update it. Customise the child theme, and look after incorporating updates into it later on. Not an ideal situation.
– Use this plugin to let you customise your theme without touching the child. Details here:
https://github.com/woothemes/theme-customisationsOf course you can use the customizer to add CSS to your site.
Forum: Localhost Installs
In reply to: Unable to edit my theme and unable add newSuggest that you install your themes and plugins manually in your hosting files. This saves you from addressing the difficulties of getting your file ownership and permissions right, that are required to let the webserver mediated file updating.
Download the theme or plugin in a ZIP file, extract it and cut/paste the directory into the wp-content sub-directories.