dhjw
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Twenty Twenty] Border around button missing from published pageForum: Themes and Templates
In reply to: [Twenty Twenty] How do you hide category link on just one post ?Inspect the page and look at the class attribute on the body tag. You will see something like postid-123. That class is unique to just that one post. You can also see the id number by looking at the browser status bar when highlighting Edit on the post in the admin panel or in the address bar when editing the post.
Set some custom CSS like:
body.postid-123 .entry-categories { display:none; }
To also hide it on the blog page:
body.blog article.post-123 .entry-categories { display:none; }
Forum: Themes and Templates
In reply to: [Twenty Twenty] Missing background image beneath featured imageIt seems due to this style:
.singular .featured-media::before { background:#fff; }
You could add an override to the site:
.singular .featured-media::before { background:initial; }
Forum: Themes and Templates
In reply to: [Twenty Twenty] Border around button GONEI noticed the same thing and just made a post about it with a little more detail.
As a fix you can do this in your custom CSS overrides:
.is-style-outline>:where(.wp-block-button__link), :where(.wp-block-button__link).is-style-outline { border: 2px solid; }
That’s some system css that was previously taking precedence over a twentytwenty style.css
border: none
declaration in the past.I assume they’ll fix it in the future and it will be possible to remove the custom entry.
Forum: Plugins
In reply to: [Contact Form 7] Optimize script and CSS loadingGreat, thanks!
Forum: Plugins
In reply to: [Shortn.It] Auto URL ShorteningWhatever tweet plugin you use would have to be programmed to do this. If not using a tweet plugin and just using Twitter to tweet, Twitter will not access your site and look for a shortened URL – you would have to submit the shortened URL yourself.
Google+ share support appears to be available but it’s not showing up in the searchable service listing, i.e. when one clicks [+] in Smart Layers or “More” after hovering over [+] with the standard share buttons.
This may be an even better fix to ensure the sidebar is always stretched to its content:
#sidebar { overflow:auto; height:auto !important; }
This in child theme is better, especially because it doesn’t affect pages without a sidebar:
/* sidebar height issue fix */ #sidebar { min-height:2600px; /* adjust as desired */ } /* when float is gone, no minimum (good for responsive ads and so any other superfluous height doesn't look bad) */ @media only screen and (max-width: 824px) { #sidebar { min-height:0; } }
This will be good enough for my needs. I don’t care if the sidebar is cut off after the set minimum. Thanks for a great theme!
Forum: Themes and Templates
In reply to: [Virality] Header ads cut off in mobile modeIt looks a little better with this (in child theme), which makes the 468×60 small banner as low as it goes.
@media only screen and (max-width: 640px) {
#banner-header {
max-width:468px;
max-height:60px;
}
}I suppose this is more of an AdSense issue than a theme issue. I’ll likely tweak more of the intermediary screen mode sizes so the ads look better.
I have mitigated the issue somewhat by applying a min-height value to .entry-content larger than the expected height of the content in the sidebar. Now the sidebar content is never cut off. Unfortunately the issue still occurs on longer posts, and the sidebar background doesn’t extend as far as it should. Hopefully I can figure out a better fix.
The issue is even more noticeable on posts containing large images. On the first load (or Ctrl-F5) sometimes a whole half of the sidebar is cut off. On the second load it isn’t cut off (as much – Facebook Social still causes a smaller cut-off).
Forum: Themes and Templates
In reply to: [Virality] Header ads cut off in mobile modeIt seems to be AdSense-specific. Images of 728×90 shrink automatically to fit. It would be cool if AdSense responsive ads could detect the new size properly so they don’t get chopped off.