Wes Theron
Forum Replies Created
-
Thank you for shedding light here @jordesign
Forum: Themes and Templates
In reply to: [Twenty Twenty-Three] Word Wrap on Drop Down MenusThank you very much @jordesign
Have you tried deactivating the plugin you are using to make the header sticky? Maybe that is causing the problem.
Forum: Fixing WordPress
In reply to: image size and unable to see ads in mysite problemHi @wanglushou9
I recommend asking at https://www.ads-software.com/support/plugin/wpadcenter/ so the plugin’s developers and support community can help you with this.
Apologies, unsure how to help with the image sizing. This may be a plugin or theme conflict. Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.
All the best
Forum: Everything else WordPress
In reply to: Searchable databaseI’m not sure of anything like that as a WordPress plugin – as it’s not really searching WordPress, it’s searching the database. Unfortunately, I don’t know the answer to this.
Forum: Themes and Templates
In reply to: [Twenty Twenty-Three] Word Wrap on Drop Down MenusHey @fotmich
The styles I can see affecting the menu on that page are added inline to the page. It is possibly the function of Gutenberg that only includes styles for elements when they are needed.
So in this case – the page content contains a bulleted list, so I?think?it’s including the additonal style that adds the padding to list items in the menu?because?there’s a list in the content.
You could try to either remove the list from that page as a test or not dispplaying the content with the List block. Or try adding a list to another page to see if the same issue occurs.Forum: Everything else WordPress
In reply to: Searchable databaseHi @abcman
It might be worthile looking into plugins such as Relevanssi, https://www.ads-software.com/plugins/relevanssi/ or Ajax Search Lite, https://www.ads-software.com/plugins/ajax-search-lite/#description. Another option might be Ivory Search.
Hope one of those will suit your needs.
Hi @agrycult
You are right! If you I chose the single post template for all posts, they should all contain the same header. I am wondering if you are using the exact same header template part on all your templates? Is there a possibility that you are using a different header template part on your single post template? If so, you can select the header, click on the three vertical dots, select replace header and choose the same header as your other template.
- This reply was modified 1 year, 1 month ago by Wes Theron.
Thank you @psykro for your help!
Awesome! You are welcome to mark this thread as resolved.
All the best!
Hope this works?
function restrict_wp_admin() { if (!current_user_can('administrator') && !is_admin()) { wp_redirect(home_url('/my-account')); // Change 'my-account' to the desired slug exit; } } add_action('admin_init', 'restrict_wp_admin'); function restrict_wp_login() { if (strpos($_SERVER['REQUEST_URI'], 'wp-login.php') !== false && !is_user_logged_in()) { wp_redirect(home_url('/my-account')); // Change 'my-account' to the desired slug exit; } } add_action('init', 'restrict_wp_login');
In this modified code, I’ve replaced
home_url()
withhome_url('/my-account')
, where ‘/my-account’ is the slug of the “My Account” page you want non-administrative users to be redirected to. Adjust the slug to match the actual URL of your “My Account” page.Forum: Themes and Templates
In reply to: [Twenty Twenty-Three] Word Wrap on Drop Down MenusHey @fotmich
I noticed the the dropdown menus in question (on the Impact Overview page) have padding around it. Please see my screenrecording: https://cloudup.com/cmWExE4NKV1
I assume the Impact Overview page is sharing the same template as the other pages below ‘About Us’? That is why it is so odd that it appears differntly.
Have you tried assigning a different template to the Impact Overview page, refresh and re-assigning the correct template?
Have you added any new plugins before adding the Impact Overview page?
Hi @gamicord
You could try the following:
function restrict_wp_admin() { if (!current_user_can('administrator') && !is_admin()) { wp_redirect(home_url()); exit; } } add_action('admin_init', 'restrict_wp_admin'); function restrict_wp_login() { if (strpos($_SERVER['REQUEST_URI'], 'wp-login.php') !== false && !is_user_logged_in()) { wp_redirect(home_url()); exit; } } add_action('init', 'restrict_wp_login');
- It checks if the current user is not an administrator (
current_user_can('administrator')
) and if the user is not on an admin page (!is_admin()
). If both conditions are met, it redirects the user to the home page (wp_redirect(home_url())
) and exits. - It checks if the request URI contains ‘wp-login.php’ (
strpos($_SERVER['REQUEST_URI'], 'wp-login.php') !== false
) and if the user is not logged in (!is_user_logged_in()
). If both conditions are met, it redirects the user to the home page and exits.
This PHP snippet restricts access to the admin area for non-administrative users by checking their user role and the page they are trying to access. If they do not have the ‘administrator’ role and are not on an admin page, they are redirected.
Forum: Fixing WordPress
In reply to: Can’t figure out how to edit content on a pageThis may be a plugin or theme conflict. Sounds like you have something disabling the block editor in some fashion.
Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.
If you can install plugins, install and activate Health Check plugin https://www.ads-software.com/plugins/health-check/
It will add some additional features under the menu item under Tools > Site Health.On its troubleshooting tab, you can Enable Troubleshooting Mode. This will disable all plugins, switch to a standard WordPress theme (if available), allow you to turn your plugins on and off and switch between themes, without affecting normal visitors to your site This allows you to test for various compatibility issues.
There’s a more detailed description about how to use the Health Check plugin and its Troubleshooting Mode at https://make.www.ads-software.com/support/handbook/appendix/troubleshooting-using-the-health-check/
- This reply was modified 1 year, 1 month ago by Wes Theron.
- This reply was modified 1 year, 1 month ago by Wes Theron.
- This reply was modified 1 year, 1 month ago by Wes Theron.