ramonopoly
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: HTML Code not savingIt could be related to many things.
Are you running the Block Editor (Gutenberg) or Classic Editor?
When you try to save the post/page, what do you see in the network tab in your browser console? Look out for any XHR requests that fail.
Forum: Fixing WordPress
In reply to: Page isn’t loading correctly until refresh – Plugin issue?When clicking on your video hero screen I do see a grey background for some of the slides.
Maybe it’s something to do with video poster image. This, for me is a 16×16 grey square: https://www.flagshipluxuryexpeditions.com/wp-content/uploads/2020/05/dare-to-dream-1.jpg
Forum: Fixing WordPress
In reply to: Can’t login to dashboard after auto updatesHello!
Did you update WordPress, or your plugins or both?
Also, it would help folks to advise if you could post any errors or screenshots of what you see when you try to login.
I’m not sure this is the cause, but I can see from your site that there are plugins that are causing errors: revslider and fabio-shortcodes.
As a first step, you could disable these plugins, but if you can’t login that’s going to be hard ??
The other way to disable the plugins is to rename the plugin folders. For exmaple rename
revslider
torevslider.deactivated
for example.You can find the plugin folders in your WordPress install under
wp-content/plugins/
.To do this you’ll need FTP access to your site. Your hosting provider should be able to help you with this if you’re unsure.
To re-enable the plugins you can rename them back to the original name, e.g.,
revslider.deactivated
becomesrevslider
again.Forum: Requests and Feedback
In reply to: Improve plugin searchHi there!
You could try creating a meta ticket describing your new feature/enhancement idea.
https://meta.trac.www.ads-software.com/newticket
I’d recommend also adding any screenshots, use cases and other information that will help folks discuss your proposals.
Thank you!
Forum: Fixing WordPress
In reply to: can’t login: browser wants to download app, not go to dashboardHello!
That popup could mean that your website wants a PHP version that’s not installed on the server.
Are there any PHP
AddHandler
statements in your.htaccess
file? It looks something like<IfModule mime_module> AddHandler application/x-httpd-ea-php74 .php .php7 .phtml </IfModule>
If so, it should match the version of PHP you’re running on the server.
Double check what your server is running. If it’s PHP 7.4 as you say, then it should match the
AddHandler
.If your
.htaccess
is auto-generated, it might be best to ask your hosting provider for support.Forum: Fixing WordPress
In reply to: Gutenberg Templates plugin?It looks like the register_block_pattern() function only works during init. Am I right with that?
Yes, that’s what the documentation recommends.
Though within a custom plugin, I’ve also registered and unregistered patterns in the
current_screen
andplugins_loaded
hooks.Sometimes you’ll need
$current_screen
for example. I can’t say if that’s 100% legit, but it worked for me.See also: https://github.com/WordPress/gutenberg/blob/release/11.4/lib/block-patterns.php#L251
I’m making an assumption that register_block_pattern is something that needs to be called every load for each pattern and that they doesn’t persist.
I’m pretty sure your assumption is correct here.
When we register a pattern, they’re loaded every page refresh.
I think I’m right in saying that we build the patterns registry every time (maybe PHP does some optimisation in the background), and we don’t cache them in transients etc like we do the patterns directory request for example.
- This reply was modified 3 years, 7 months ago by ramonopoly. Reason: formatting
Forum: Fixing WordPress
In reply to: Gutenberg Templates plugin?As I said above, reusable blocks don’t work because they are ‘one block’ when used across the site. If you change it, it’s reflected across all the locations unless you convert it back into blocks.
Ah, sorry I jumped ahead, or behind, or nowhere useful at least, and didn’t realize you needed to tweak them.
What I need is patterns but being able to create them from the editor. I suspect I’m going to need to make a plugin for it.
Agree. I don’t think it’d have to be a very large plugin, but it’d help manage a growing library of patterns and ensure consistency.
Good luck with it!
Forum: Fixing WordPress
In reply to: Gutenberg Templates plugin?Another option might be to create a pattern as a reusable block:
https://wordpress.com/support/wordpress-editor/blocks/reusable-block/
Forum: Fixing WordPress
In reply to: Links not working in admin panelIt’s likely that WordPress is logging these errors. If the problem is still happening you could try to turn debug and logs in wp-config.php:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
Triggering the issue again should (hopefully) log an error message to
wp-content/ debug.log
Here’s an article that describes how to do this: https://www.wpbeginner.com/wp-tutorials/how-to-set-up-wordpress-error-logs-in-wp-config/
If the logs don’t mean much to you, you can paste the output here and folks can take a look for you.
Forum: Fixing WordPress
In reply to: functions.phpan observation, it’s not one or two users, it’s user roles, like clients
Are you using default WordPress roles, e.g., Author, Editor, Contributor, and so on, or have you created custom roles via a plugin?
You can check for specific roles in the
roles
property of the user object.$user = wp_get_current_user(); if ( in_array( 'author', (array) $user->roles ) ) { // Add your custom CSS for Authors here. }
I thought in the form of CSS it would be easier.
I agree with the suggestion about displaying the widget conditionally. If you need to detect roles and add custom CSS accordingly it might not be any easier.
Or were you imagining to be able to hook into an existing CSS class, for example
is-author
or something? If so, I don’t think that’s available by default unfortunately.If you’re comfortable with developing WordPress sites, there are a lot of hooks related to sidebars and widgets. For example the widget_text hook, which allows you to filter the contents of text widgets.
Knowing exactly which widget you want to show and where, would help to narrow down the options.
- This reply was modified 3 years, 7 months ago by ramonopoly.
Forum: Fixing WordPress
In reply to: slider banner text is not showing on mobileThe CSS code from the previous answer works for me.
Example: https://d.pr/i/WrlPrX
It’s important to apply both suggestions to the site, for example:
@media screen and (max-width: 560px){ section#slider .inner_carousel h2, section#slider .inner_carousel p{ display: initial; } #slider img { height: 500px; object-fit:cover; } }
If you’d like the slider to be taller, then you could try increasing 500px to 550px for example too.
Forum: Fixing WordPress
In reply to: How to add a filter section in website?I haven’t tried it myself, and am not explicitly recommending it, but the Search and Filter plugin might get you someway to where you want to be: https://www.ads-software.com/plugins/search-filter/
Here’s the description:
You can search by Category, Tag, Custom Taxonomy, Post Type, Post Date or any combination of these easily to really refine your searches – remove the search box and use it as a filtering system for your posts and pages. Fields can be displayed as dropdowns, checkboxes, radio buttons or multi selects.
If you have any specific questions about the plugin, you could also ask them in the plugin support forum: https://www.ads-software.com/support/plugin/search-filter/
- This reply was modified 3 years, 7 months ago by ramonopoly. Reason: Formatting
Forum: Fixing WordPress
In reply to: Black frame on Esc in Gutenberg: can’t edit blocksLooks like you’re having problem with “Select mode”, formerly known as “Navigation Mode”.
Once you’ve hit Escape to select the block, now try hitting the Enter key to start editing.
You can toggle between select and edit by pressing Escape and Enter.
Does that work for you?
Here’s an example: https://d.pr/i/3B8TWc
For context and further reading, select/edit mode has been a feature since Gutenberg 6.3.
Here’s more information on the topic:
https://github.com/WordPress/gutenberg/issues/17088
https://wptavern.com/gutenberg-6-3-improves-accessibility-with-new-navigation-and-edit-modesHope that helps!
- This reply was modified 3 years, 7 months ago by ramonopoly.
Forum: Fixing WordPress
In reply to: Remove links from post titleFirstly, I’d add that linking to posts directly in a list of latest posts will help your visitors access your content. It’s a common pattern.
Astra provides a lot of customizability, especially if you upgrade: /wp-admin/themes.php?page=astra
I don’t think what you’re after – removing links from the blog title in a Loop – is available however.
You’re right in saying that you probably need to have some experience working with WordPress plugins and The Loop before you attempt to edit theme files, so, if you don’t, I would advise against this just to make sure things don’t break on you.
What about CSS? It might be less invasive alternative, if you feel comfortable adding some.
The following would remove the ability to click on the title link, and also remove any underline styles.
.home entry-title > a { pointer-events: none; text-decoration: none; }
This is just an example, you might have to tweak it a little.
You can try this out by pasting it into the field at Appearance > Customizer > Additional CSS.
There’s a great resource about learning CSS at https://codex.www.ads-software.com/CSS
If you’re not comfortable with CSS, then it’s fine to leave the links since I’d guess that they’d be more helpful to your visitors than not.
Hope that helps!
Forum: Localhost Installs
In reply to: Latest Site Version not loading on local hostI’m not sure this is going to be helpful, but what happens when you restart MAMP?
> Decided to empty Google cache from last 24 hrs.
Do you mean your browser cache? I’m not sure, but it shouldn’t be related.
If it happens again, before you revert, you might like to try exporting your site at wp-admin/export.php. If WordPress exports your posts/pages with the right content, but they’re still not displaying it might be a theme issue.
You could try the Laborator support channels https://laborator.ticksy.com/
- This reply was modified 3 years, 7 months ago by ramonopoly. Reason: Adding tags