In the StudioPress.com forum a person asked about having her columns naturally collapse so that the content will be 4 columns where there’s the width for it and, as the viewport decreases in width, the columns will start stacking in to 2 and then 1 column. The column classes that come with Genesis, Bootstrap, and others don’t do that. They use floats. You can use Flexbox or you can use inline-block. Flexbox is still buggy ... Read More
tutorial
Updated: WordPress RSS feeds and MailChimp
Do not send me a bug report. Become a paid member of MailChimp and after reading their documentation, if you have an issue, use their support. The original code last week was messed up in that the the same image was used in all posts, I should have noticed it. Anyway, this code is updated and it works great. Apparently hardly anyone is reading my blog to let me know of issues, which is disheartening. ... Read More
Fix blurry images in your WordPress oEmbed and use your own logo
I noticed that some WordPress sites I embedded, including my own, had blurry images for their featured image and had the WordPress logo for their Site Identity icon. This post will instruct you how to correct this. First let’s get some history, you are not going to touch the WP core. If you look at the /wp-includes/embed-template.php
file (4.4) or the /wp-includes/theme-compat/embed-content.php
(4.5), you’ll notice that the script is working some php math to find the ratio for rectangular images. If your best fit for that rectangular image ratio is an image size (add_image_size
) that is small, then the resulting embed will be blurry across the web. To check if your site’s embed is blurry (you must be updated to WordPress 4.4x), paste in a url to one of your blog posts in another post in draft mode. You can use the visual mode for this test. In a couple seconds, your post will show up like the one below. If you have a featured image on that post, that will show up as well. ... Read More
If the date is modified, show modified date in your Genesis Child theme posts
In the Short Code reference there are a couple shortcodes missing. The first one below is the shortcode for the modified date. January 29, 2018 1:20 pm To indicate that the date was last updated on, I check to see if it was modified. This is so all the posts, even new ones, don’t show the text “Last updated on” before the date: This modified from the one I use on this blog since I ... Read More
Logo that hangs outside the .site-header in Genesis with CSS
A week or so ago someone in a Genesis forum had a CSS situation where the client’s logo designer suggested placement outside the .site-header. This example is using Outreach Pro. If you use this in another theme, you may have to make adjustments to the CSS. View Demo Software requirements: Photoshop or Illustrator or equivalent FTP Code Editor Set up the Logo Get the vector logo and either open it in Illustrator or place it ... Read More
Fast and Free WordPress Database migration without losing serialized data
If you don’t want to lose your widgets, your CMB2 content, or other serialized data, the Search and Replace for WordPress Databases by interconnect/it is amazing! I had a BUNCH of CMB2 fields and when I did a standard find and replace or a SQL query, my content was just not showing up when I moved my site. Widgets and CMB2 use serialized data. That stuff is completely over my head. Check out this descriptive ... Read More
Limit WP Clips to only a Genesis theme and only a specific child theme
For a lot of situations you don’t have to use a plugin to update your Genesis child theme, you can just edit the child theme’s files directly. However, if you are a developer working on a client’s site, using WP Clips as a mu-plugin, you can keep the child theme pristine, make some major customizations and, if sometime in the future, that particular child theme does have an update (and many do), you can install ... Read More
Force the read more link on excerpts even if the content is below the threshold and/or custom excerpt
When I was creating this blog I came across a few things that irked me. One of them was that if I chose excerpts in my Genesis Admin settings (which is not the irk), that WordPress will not show any read more link. When you go to the WordPress Codex and use their code, see "Displaying a "more…" link when using the the_excerpt()", the excerpt only shows on posts that have more words than the ... Read More
Genesis : Create a custom author.php page showing only the post title
This first gist shows you how to just output the title as an un-ordered list and remove all other content (meta, content, image). This is a page you create named author.php and you put this in the root of your child theme directory. This second gist shows you how to paginate the author page. Five is a low number if you are only using the title, so hike that up. However, if you are showing ... Read More
Genesis : Add pagination to your author page or any page (including CPTs)
This gist shows you how to paginate your author posts page. You can also change the conditions to use it for other purposes, such as Custom Post Types or by certain categories. Check out the codex for more information. This goes in your functions.php file. ... Read More
Before you adjust your Genesis child theme, read this
I noticed on the Genesis boards in various places (Facebook & StudioPress.com/forums) that many people want to adjust their themes but they don’t have the right tools. If you are adjusting your Genesis Child theme, you are doing developer work. To not cause issue after issue, use the correct tools. Before attempting anything with php, NEVER use the Appearance > Editor. Use a code editor and FTP or SSH. I use BBEdit, but I’m switching ... Read More