luisherranz
Forum Replies Created
-
Oh, I think I found the problem. The about-us page parent is your home page, that has the
create-your-website-with-blocks
.Can you edit your about us page and remove the parent page?
Do you have FTP access to your server?
Forum: Fixing WordPress
In reply to: error pagesYes, you can remove that line. Search engines should never crawl ajax URLs.
Forum: Developing with WordPress
In reply to: Having text with the same aspect ratioNormally, to fix that you would add a
min-width: 300px
for example to the element that looks bad when it’s too small.But taking a look at your site, I see a lot of CSS change on the breakpoint, you might have more luck increasing the breakpoint from
769px
to something bigger, like for example869px
:@media only screen and (min-width: 869px)
You’d need to do that for all the media queries though, so use a search and replace on all your CSS files.
Let me know if that helps.
The first thing I’d check is the WordPress URLs:
- Go to
Settings
, thenGeneral
. - Look for the
WordPress Address (URL)
andSite Address (URL)
fields. - Check that none of them contain the
/create-your-website-with-blocks
folder.
If those are fine, you can take a look at the permalinks:
- Go to
Settings
and thenPermalinks
. - Look at the current permalink structure. Check that there is not a
/create-your-website-with-blocks/
folder there either.
Let me know if that helps.
Forum: Fixing WordPress
In reply to: Your site could not complete a loopback request, error 405A 405 error, as I said, typically indicates that a particular HTTP method is not allowed for the requested resource. A loopback is when your server tries to connect to itself. They are independent.
What are the things that would commonly break if I ignore this?
Things that could break include cron jobs, site health checks, API request, etc.
Actually, is it even possible, I thought loopback always means “local”, as in 127.0.0.1?
As far as I know, WordPress doesn’t use localhost because different servers are configured in different ways so there’s no guarantee that localhost will point to the WordPress server.
Could you tell me what page or what request is used for testing loopback functionality so that I could execute it in a browser?
I don’t think there’s any special URL. You can check if it works following these steps:
- Access the WordPress admin dashboard.
- Go to Tools > Site Health.
- Check if something like “Your site could not complete a loopback request.” appears.
—
I strongly suggest you follow the debugging steps outlined before because it can help you narrow down the root of the problem.
Forum: Fixing WordPress
In reply to: Your site could not complete a loopback request, error 405Hey @randomcoder, without having access to your site, it’s not possible to know what is wrong, so you must follow the normal debugging steps yourself:
- Disable all plugins
- Change to a default theme
- Check the configuration of your hosting (or contact them)
- Take a look at the 405 errors in the browser (headers and such)
- Replace the
.htaccess
file with a default one
Once you’ve done that, if you have more information about the problem, you can come back here, and we, or any other volunteer, will try to keep helping you to the best of our knowledge.
I think it was moved to “Tools”. Can you check if it’s there?
Forum: Fixing WordPress
In reply to: error pagesDo you know why you have the
Allow: /wp-admin/admin-ajax.php
part? That’s probably causing the issue.Forum: Developing with WordPress
In reply to: Putting a div in a functionAttention:?add_shortcode() should always return a value via return, never via echo.
Oh, totally true ?? Thanks @threadi!
Forum: Fixing WordPress
In reply to: Your site could not complete a loopback request, error 405The HTTP 405 error typically indicates that a particular HTTP method is not allowed for the requested resource. It’s often related to server configuration or specific website settings. Let’s explore some troubleshooting steps:
- Deactivate All Plugins Temporarily: Sometimes, plugins can conflict with each other or with WordPress core, causing unexpected issues. Deactivate all plugins temporarily to see if the issue resolves. If it does, reactivate them one by one, checking after each to identify the culprit.
- Switch to a Default Theme: If deactivating plugins doesn’t help, try switching to a default WordPress theme like Twenty Twenty-Four. This can help rule out any theme-related issues.
- Check Server Configuration: Sometimes, server settings can cause this issue. If you’re on a shared hosting, you might need to contact your hosting provider.
- Inspect Network Requests: Use your browser’s developer tools to inspect network requests while replicating the error. Look for any failed requests and examine the details. This can provide clues about what’s going wrong.
- Review .htaccess Again: Although you’ve checked it, it might be worth revisiting your .htaccess file. Sometimes, issues aren’t immediately apparent. You can temporarily rename it and use a default WordPress .htaccess file to see if it solves the issue, which would indicate a problem within this file.
Remember to back up your site before making any significant changes, especially when dealing with core files or server configurations.
- This reply was modified 1 year, 4 months ago by luisherranz.
It looks like Blocksy has support for breadcrumbs and integration with Rank Math. Make sure you choose Rank Math as the provider in the breadcrumbs Blocksy settings, as explained in the documentation.
Then, if you want to position the breadcrumbs in your header, I suggest to edit your
header.php
and include the following code:<?php echo do_shortcode('[blocksy_breadcrumbs]'); ?>
If you don’t want to modify the block files, you can create a child theme.
- This reply was modified 1 year, 4 months ago by luisherranz.
Forum: Fixing WordPress
In reply to: error pagesGoogle sometimes crawls URLs that it finds inside
script
tags. In this case, those URLs are inside a script tag in your head.In my opinion, the easiest way to solve this problem would be to update your
robots.txt
to ensure that thewp-admin
directory is disallowed and prevent search engines from crawling and indexing URLs under thewp-admin
path.Something like this:
User-agent: * Disallow: /wp-admin/
Let me know if that helps.
Forum: Localhost Installs
In reply to: Links to local network drives/foldersYes, modern web browsers have strict security restrictions regarding linking to local file systems from web pages, no matter if users have access to those files or not.
Forum: Developing with WordPress
In reply to: Putting a div in a functionTo wrap the words “SEARCH & FILTER” with a
div
element having a specific class in your WordPress shortcode function, you need to modify the PHP code a bit. Here’s how you can do it:function image_sidebar_shortcode() { // Start by opening the div tag with the specific class echo '<div class="your-class-name">'; // Echo the gettexted words inside this div echo __('SEARCH & FILTER', 'sacconicase'); // Close the div tag echo '</div>'; // Continue with the rest of your code echo '<div class="filter"><img height="100" src="https://test.sacconicase.com/wp-content/uploads/2023/11/cercaefiltra-4.jpg"></div>'; } // Register shortcode add_shortcode('image', 'image_sidebar_shortcode');
In this code:
- I added a
div
tag withclass="your-class-name"
around the__('SEARCH & FILTER', 'sacconicase')
. You should replace"your-class-name"
with the actual class name you want to use. - The rest of the function remains the same.
This modification will result in “SEARCH & FILTER” being wrapped inside a
div
with the specified class, and it will be part of the output when the shortcode[image]
is used on your WordPress site. - Go to