mattwmc2001
Forum Replies Created
-
Version 2.5.4
Forum: Plugins
In reply to: [ShareThis Reaction Buttons] Minify JS and deferI think the issue is the script comes from a third party (you) via the plugin and doesn’t come with defer or is minified. Just look at the url code and you see the script isn’t minified.
- This reply was modified 5 months, 1 week ago by mattwmc2001.
Cool. Thanks.
- This reply was modified 6 months ago by mattwmc2001.
Update: When using the avatar widget, when checked, this isn’t working right for me: “Enable Gravatar – Do you want to use Gravatar instead of the default plugin profile photo (If the user did not upload a custom profile photo/avatar)?”
User has uploaded a photo but it’s using Gravatar. When unchecked, it still doesn’t use user uploaded image, it uses UM default image.
It’s also providing this link ‘/author/username/’ which is redirecting to the front page.
Update: /author/username/ redirect was caused by Rank Math. However, profile image still isn’t showing.
Update #2: It’s showing the admin profile image and link in the header avatar widget. I seem to be having a theme issue. When switching from GeneratePress to Astra it works but only through Astra’s Avatar widget. Choosing Widget then Avatar it doesn’t work.
Update #3: It’s a GeneratePress issue. You need to add code in functions.php to get it to show the right profile pic:
if ( is_user_logged_in() ) { $current_user = wp_get_current_user(); if ( ($current_user instanceof WP_User) ) { $account_link = ‘ADD ACCOUNT LINK HERE’; echo ‘<a href=”‘ . $account_link . ‘” class=avatar-account-button>’ . get_avatar( $current_user->ID, 32 ) . ‘</a>’; } }
See here: https://generatepress.com/forums/topic/add-an-user-icon-next-to-the-hamburger-menu/
- This reply was modified 6 months, 3 weeks ago by mattwmc2001.
- This reply was modified 6 months, 3 weeks ago by mattwmc2001.
- This reply was modified 6 months, 3 weeks ago by mattwmc2001.
- This reply was modified 6 months, 3 weeks ago by mattwmc2001.
- This reply was modified 6 months, 3 weeks ago by mattwmc2001.
- This reply was modified 6 months, 3 weeks ago by mattwmc2001.
- This reply was modified 6 months, 3 weeks ago by mattwmc2001.
Forum: Plugins
In reply to: [Da Reactions] Remove toggle feature?Nevermind, I found it in Grapphic Settings –> Select a template for reactions.
- This reply was modified 7 months ago by mattwmc2001.
As I said in the first post, Disable Developer Tools is set to no. It still shows.
Cleared caching (Flying press) and (cloudflare). Script is still here.
<script id="devtools-detect-js" defer data-src="https://cosmicbook.news/modules/wp-hide-security-enhancer/assets/js/devtools-detect.js?ver=6.5.3"></script>
Note: Disable Developer Tools is set to ‘no’
Thanks.
- This reply was modified 10 months, 2 weeks ago by mattwmc2001.
<picture> tags aren’t showing up in source code and no next-gen images are being converted. I contacted support
Forum: Themes and Templates
In reply to: [Astra] Customizer Banner Area Changes Not WorkingYeah, it’s the live preview (Customizer), that no changes happen. When saving (just tried it), the settings work. Thanks!
Yes that is what I mean, that is before the content, not before the title. I managed to use the ‘heading position after’ setting and used some custom css to get it how I want. Thanks.
Forum: Plugins
In reply to: [Health Check & Troubleshooting] Troubleshooting is brokenFor me, it was a caching issue. I had to disable WP Rocket via renaming the file in the directory using FTP. Then I had to reenable all my plugins.
Forum: Plugins
In reply to: [Health Check & Troubleshooting] Trouble Shooting Mode Won’t DisableUpdate: Think I fixed it. So I had to disable my caching plugin (WP Rocket). So even though it shows as disabled due to the Trouble Shooting Mode, it’s not really disabled. I think there might have been some sort of conflict. Also the Trouble Shooting Mode seems to turn off all plugins for all users. When I disabled WP Rocket (had to rename plugin in the directory using FTP), for all users it shows plugins off. I had to reenable all the plugins again and everything is working.
Update: I got it to work for me. I had to clear cookies. I think when I uploaded a new SSL certificate, the cookies got messed up. Now it works however, now I can’t shut it off.
Yeah also not working for me. I enable trouble shooting, it takes me to the ‘Troubleshooting Mode –?enabled’ page, then when I enable a plugin, it redirects me to the dashboard and Troubleshooting Mode is no longer turned on.
I figured out how to add the category to the latest posts on home page and only show the first category surrounded by a div.
Edit wp-content/themes/astra/inc/blog/blog.php.
On line 247 add this code:
// Check if it's the home page and then display the first category if ( is_home() ) { $categories = get_the_category(); if ( ! empty( $categories ) ) { $first_category = $categories[0]; // Get the first category echo '<div class="display-category">'; echo '<a href="' . esc_url( get_category_link( $first_category->term_id ) ) . '">' . esc_html( $first_category->name ) . '</a>'; echo '</div>'; } }