Jonathan Bossenger
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: impossible to center logo – due to custom css?Hi @henry0w
I notice that it looks like you are using the Twenty Twenty-One theme for your site. In order to help with the logo centering, can you share the steps you used to get the site logo next to the menu as you have done?
The reason I ask is that the default functionality of the Twenty Twenty-One theme is to place the logo in the center above the site name and menu, as you can see from my screenshot: https://tinyurl.com/2bmke9ex
Hi folks, I hope you all don’t mind me adding something here.
I wanted to note that the
current_user_can checkshould be using one of the Administrator level capabilities, instead of the administrator role.So instead of
current_user_can( 'administrator' )It should be something like
current_user_can( 'manage_options' )Currently with the code as it is, the
current_user_can( 'administrator' )check will always returnfalse, unless that specific capability is being added by something else.I would also add that this code should be tested on both a non-admin user account and an admin user account, to ensure that it works for both scenarios.
Forum: Developing with WordPress
In reply to: google font not loading up anymoreI don’t know if this matters, but I’ve hardcoded the URL into my CSS. So for example in my style.css
@import url('https://wordpress.test/wp-content/themes/twenty-twenty-one-child/fonts/fonts.css'); body { font-family: 'Ruda', Arial, sans-serif !important; }And in my fonts.css, for example
@font-face { font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ font-family: 'Ruda'; font-style: normal; font-weight: 400; src: url('https://wordpress.test/wp-content/themes/twenty-twenty-one-child/fonts/ruda-v28-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ }But it does work and apply the font, so what I’m trying to say is as far as I can see there’s nothing in WordPress core that would prevent this from working.
I’m using the Twenty Twenty One theme to test.
Forum: Developing with WordPress
In reply to: google font not loading up anymoreSo I don’t know if I’ve got exactly the same setup as you, but I have created a child theme, used this Google Web Fonts Helper to get the woff2 versions of the fonts, created a font.css file with the CSS that the Google Web Font helper gives me into a folder called fonts in my child theme, and then I @import that style sheet at the top of my child theme style.css file.
I can see that the style is being loaded, and the font is being applied, but only where there is not another font being applied to a specific element.
Are you able to try that on a staging or local copy of the site somewhere, to see if that works?
Forum: Fixing WordPress
In reply to: No Add To Cart ButtonHi @jake68 it looks like that clear button will always appear when you select a variation, and the styling applied to the clear button in the Woostify theme is conflicting with the styling of the variation switches from the plugin.
One way you could fix this is to apply some custom styling to the clear button, I’m not sure if this is something you’d be comfortable with, or if the theme provides for it. Alternatively you could log this with the theme developers.
Forum: Developing with WordPress
In reply to: google font not loading up anymoreThank you.
I notice that the fonts you are loading are using the woff and woff2 format, while the fonts I downloaded today from Google are using the ttf format. Did you manually convert the fonts to woff or woff2?
Forum: Developing with WordPress
In reply to: google font not loading up anymoreThanks. Final question, are you able to share the content of the
/fonts/ruda/stylesheet.cssfile here.
I see on Google fonts now they only display how to load fonts from the web, and if I download the fonts from Google fonts, I only get the font files, not the CSS file.Forum: Developing with WordPress
In reply to: google font not loading up anymoreGot it, thanks. And could I confirm, is the theme a classic theme or a block theme?
Forum: Developing with WordPress
In reply to: google font not loading up anymoreHi @devsaredead can I confirm how you have added this code to your WordPress site? I’d like to try and replicate your configuration on my side, so I can see what it does.
Forum: Fixing WordPress
In reply to: No Add To Cart ButtonHi @jake68
Looking at the source code of your shop page, the add to cart button does not appear in the source code on that page.
When I click through on a single product page, I can see the add to cart button along with the quantity selection HTML in the source, but it has some CSS applied to it.
display: none !important;This is what’s causing the HTML not to display on the single product page. When I disable this CSS in the browser developer tools, the quantity selection and Add to Cart buttons appear.
I don’t use Woostify, but is there a setting somewhere to disable the quantity selection or add to cart button that needs to be enabled?
If not, may I suggest trying a different theme to see if the issue persists? If changing the theme fixes the problem, you might have to contact the Woostify theme developers via their support page.
Hello @thanhthupro23
Are you wanting to work with a logged in user’s session? This is typically stored in a cookie in the browser.
Forum: Fixing WordPress
In reply to: Google finding random URL’sHi @rickyrt
Are you able to share a screenshot of the GSC screen where it says that the URL is not found? My guess is that somewhere on your site something is linking to https://livingunrefined.com/enzymes-definition-and-functions/what-is-enzyme/, and that’s what GSC is reporting.
Forum: Developing with WordPress
In reply to: How to change the url of the author to a specific page?One way you should be able to do this is to set the Authors Website to the specific page for that Author. You can change this value in the User profile page for that author.
Whether this works will depend on how the author URL is fetched by the theme you are using.
Forum: Everything else WordPress
In reply to: Canonical for homepage problemHi @gatehealing it looks like you were able to resolve this problam.
If that is the case, we would love if you would mark this topic as resolved in the sidebar.
Thanks
Forum: Fixing WordPress
In reply to: WordPress theme not working| Emmanuel Katto UgandaHello @emmanuelkatto
When you say the colour of your website changes, do you mean compared to when you are editing it, or when you are viewing it, the colours change?
Do you have a URL we could look at to see the change happening?