milesweb
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Issue with Block Theme TemplatesYou can use a combination of theme files and filters to accomplish your purpose. Here’s an easier method:
– Create a Custom Template in Your Theme:
- In your theme folder, create a new file, e.g.,
custom-template.php
. - Customize this file with your desired structure, including additional containers around blocks.
–Use
template_include
Filter:- Open your theme’s
functions.php
file. - Use the
template_include
filter to conditionally load your custom template file instead of the defaulttemplate-canvas.php
. Here’s an example:
function custom_template_include($template) { // Check if it's the template-canvas.php being loaded if (is_page_template('template-canvas.php')) { // Use your custom template file $custom_template = locate_template('custom-template.php'); if ($custom_template != '') { return $custom_template; } } return $template; } add_filter('template_include', 'custom_template_include');
This filter checks if the current template being loaded is
template-canvas.php
and replaces it with your custom template if it exists in the theme.- Save your changes and update your theme files.
Hope this will help you….
Forum: Developing with WordPress
In reply to: Issue with Block Theme TemplatesYou can follow these step.
- Develop your custom template file, for example,
custom-template.php
, with the desired structure. - Ensure to include the necessary WordPress functions for header, footer, and content.
- In your theme folder, locate the
template-canvas.php
file. - Replace its content or rename it to keep a backup, and then paste the content of your custom template file.
- Edit your custom template to add the additional containers you need, wrapping the blocks within
<div class="wp-site-blocks">
or as per your requirements. - Save the changes and update your theme files.
Forum: Fixing WordPress
In reply to: Undefined array keyHi @michel225,
- Check the plugin documentation for any required configurations.
- Make sure you have the latest version of Elementor Pro installed.
- If the issue persists, contact Elementor support for assistance or check for updates or patches related to this error.
Forum: Fixing WordPress
In reply to: Issues with Core Web VitalsHi @henry179,
Hope this helps!- Optimize Images: Compress and resize images to reduce their size.
- Upgrade Hosting: Make sure there are enough resources in your hosting plan for lag-free operation.
- Use Browser Caching
- Minimize CSS and JavaScript.
- Check if any plugins are impacting performance; deactivate unnecessary ones.
- Make sure your theme is speed-optimized, or think about moving to a faster one.
- Check Server Response Time.
Tools like PageSpeed Insights are useful for thorough analyses.
Forum: Networking WordPress
In reply to: how to create www subdomain in multisites setup?Hi.. @skysky
you can try these steps:- Log in to your subsite’s WordPress dashboard.
- Go to “Settings” > “General.”
- Update WordPress Address (URL) and Site Address (URL): Change both the “WordPress Address (URL)” and “Site Address (URL)” to include the “www” prefix. For example:
WordPress Address (URL):https://www.mydomain.com
Site Address (URL):https://www.mydomain.com
Save the changes. - Check your .htaccess file for this code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule> - Check WordPress Plugins: Some plugins might interfere with URL settings and redirection. Temporarily deactivate any URL-related or redirection plugins you have installed and see if the issue persists.
- Clear Browser Cache.
- Check Server Configuration.
- This reply was modified 10 months ago by milesweb.
Forum: Everything else WordPress
In reply to: Password resetHello,
Do you have access to the database that you have used for this site?
If yes then you can reset the password from the can refer to this URL on how to reset the password through phpMyAdmin: https://www.ads-software.com/documentation/article/reset-your-password/Forum: Developing with WordPress
In reply to: I’m in the process of building my website.We’re happy to help you make TheChickenPet.com the coop-tastic haven for chicken enthusiasts. Here are some ideas to get your creative feathers a-fluttering:
Here are some Kadence-specific Plugins;
Kadence Conversions: Turn visitors into customers with targeted popups, opt-in forms, and other conversion optimization tools. This premium plugin integrates seamlessly with the Kadence theme for a smooth user experience.
Kadence Blocks: This free plugin by the Kadence team itself is a must-have. It expands your design possibilities with tons of pre-built content blocks, from sliders and galleries to call-to-action buttons and testimonials.
Forum: Fixing WordPress
In reply to: Please suggest Resume template builder pluginHello,
You can check out below plugins and themes for resume builder
Forum: Networking WordPress
In reply to: how to create www subdomain in multisites setup?To add the www subdomain to your WordPress Multisite network. You can refer to these steps.
- Access wp-admin: Log in to your WordPress Multisite network’s admin dashboard.
- Navigate to Sites: Go to My Sites > Sites (/wp-admin/network/sites.php).
- Add New Subsite: Click on the “Add New” button at the top.
- Fill out the Fields: Complete the required fields for the new subsite:
- Site Address: Contrary to the instruction, you can use www in the Site Address. In your case, you can enter https://www.mydomain.com. Subdomain: Specify the subdomain for the new site, such as siteaddress.mydomain.com.
- Save Changes: After filling out the fields, save the changes to create the new subsite.
By following the above steps, you will be able to create a subsite with the www subdomain. Keep in mind that some WordPress configurations might have restrictions on using www, but in many cases, it is allowed.
Hope this helps.Forum: Installing WordPress
In reply to: Can’t log into my site; says I’ve tried too oftenAppreciate your suggestion regarding the CleanTalk Spam Protect plugin. Deactivating the plugin via FTP is a valid step to troubleshoot the login issue.
If, after removing the plugin, the problem persists, consider trying the following additional solutions:
- Clear Browser Cache and Cookies: Clear the browser’s cache and cookies before attempting to log in again. Sometimes, cached data can interfere with the login process.
- Incognito/Private Browsing: Try logging in using the incognito or private browsing mode of the browser to rule out cached data issues.
- Different Browser: Use a different web browser to access the blog site. This can help rule out browser-related issues.
- Password Reset: Initiate a password reset to ensure correct credentials are used.
- Contact Hosting Support: If none of the above solutions work, reach out to the hosting provider’s support for further investigation and assistance.
Forum: Fixing WordPress
In reply to: Read only admin accessHello,
You can try to create a new user and set limited access to the user.
Go to Users > Add New.
Fill in User Details:Enter a username, email address, and a strong password for the new user.
Set the Role as Subscriber
The lowest level of access is primarily used for people who want to read content and may have an account for commenting. Subscribers do not have any editing or publishing capabilitiesForum: Localhost Installs
In reply to: error establishing a database connectionHello,
Did you check if the database server is running? Also, try to repair the database once and check if the error persists. Make sure you have taken the backup of the database and then proceed.
- This reply was modified 10 months ago by milesweb.
Forum: Fixing WordPress
In reply to: page not working – HTTP ERROR 500Hello,
Here are a few steps you can take to troubleshoot and resolve the issue:- Validate WordPress Version Compatibility: Confirm that your WordPress version is compatible with the theme and plugins you’re using. Incompatibility could result in errors. Ensure that you are using the latest stable release of WordPress.
- Reinstall WordPress Core Files: Verify that all WordPress core files are intact and not corrupted. You can reinstall WordPress to ensure that all files are in their proper place.
- Verify File Permissions: Ensure that file and directory permissions are set correctly. Incorrect permissions can lead to various issues.
Best regards,
MilesWebForum: Fixing WordPress
In reply to: Cannot access login/admin dashboard entirelyHello,
Based on the error screenshot provided, it appears that the domain is currently directed towards an external server IP address (148.163.126.71). To ensure proper configuration, I recommend validating the accuracy of the nameservers or server IP details through consultation with your hosting provider. Once confirmed, proceed to update the nameservers at your domain registrar’s end to facilitate optimal functionality.In cPanel, the nameserver configuration is not usually directly accessible within the cPanel user interface. Instead, nameserver settings are typically managed at the server level or by your hosting provider.
If you’re seeking information about the nameservers associated with your cPanel hosting, here are common methods to locate them:
Explore Nameserver Information in cPanel:
Navigate through the cPanel interface. In some cases, hosting providers may include nameserver details in the dashboard or within the “Zone Editor” option in cPanel, though this is not always the case.
Refer to the Hosting Welcome Email:
Upon signing up for hosting, your hosting provider often sends a welcome email containing crucial information, such as the nameservers linked to your hosting account.
Contact Hosting Provider’s Support:
For accurate and prompt information about your specific hosting setup, reaching out to your hosting provider’s support is recommended. They can guide you on the precise nameserver details associated with your cPanel hosting account.
Regards,
MilesWeb.Hello,
As I can see your files got compromised and if you have root access or terminal access then you can simply replace the core files and verify the checksum of WordPress core files, Refer to the below commands to verify WordPress files integrity and replace the core files, it will help you to recover your site quickly,
For user/terminal access
//to verify file inter-integrity
wp core verify-checksums
//to replace core files
wp core download –force –skip-content
For root access
//to verify file inter-integrity
wp core verify-checksums –allow-root
//to replace core files
wp core download –force –skip-content –allow-root- This reply was modified 10 months, 1 week ago by milesweb.
- This reply was modified 10 months, 1 week ago by Steven Stern (sterndata).
- In your theme folder, create a new file, e.g.,