Do you have an active filter in the CSS of your website that greatly benefits the design in most browsers, but for whatever reason, need a way to selectively disable it? Whether it’s to create a nice transition where the filter is disabled, you are making stylesheets for specific versions of IE, or you are using media queries to selectively … Read More
Tutorials - Category Archive
How to Force a Button or Link to be 100% Width CSS Tutorial
These are instructions on how to make an HTML link or button expand to be as wide as its parent element. Maybe you have been confused in the past and that darn link just never wants to grow. Here is the CSS you are going to want to apply to that link.
1 2 3 4 5 6 7 8 9 |
.fullwidth { width:100%; margin-left:0; margin-right:0; padding-left:0; padding-right:0; display:block; text-align:center; /*This will result in centering the link text, which is probably what you want -brianjohnsondesign.com*/ } |
And the corresponding HTML:
1 |
<a href="#" class="fullwidth">Subscribe now</a> |
The secret … Read More
WordPress Gallery Plugin: Warning: array_merge() Error
When you try to update you gallery using the WordPress Gallery Plugin, are you getting a string of php errors reading something alone the lines of: “Warning: array_merge() [function.array-merge]: Argument #1 is not an array?” If that’s the case, there may be a simple solution. 1. Exit the gallery post. 2. Reload the post. 3. Make sure the post has a title (This … Read More
PHP Script to Create Links to Each Subdirectory Using Page Titles as Anchor Text
I had a thought today. I have numerous, changing folders in part of my website, and I wanted to create a page that automatically generates links to each of those folders (or subpages) which I could then style and use, with the title attributes of the pages contained within those folders as the anchor text. So I did some Google … Read More
Google Analytics: Can Site Administrators See Your Other Websites?
If you are like me, and you have one Google analytics account with many different websites within it, you might be confused as to what certain users can see and not see. For example, if you have analytics for one of your sites, and you add someone else on as an administrator, will they have access to the analytics for … Read More
How to Enable and Use Custom Fields in WordPress Without Plugins
An annoying problem I’ve had lately that somehow is almost impossible to troubleshoot online, is enabling or finding custom fields in WordPress without adding a plugin like Advanced Custom Fields (which is typically what I recommend using). This should work I believe with any version of WordPress after about 3.1 as well, where the Custom Fields are hidden by default. … Read More
How to Remove the Bezier Handle in Photoshop CS5
If you are like me, you have spent many frustrating hours working with Photoshop and the pen tool trying to figure out the same thing. How can you get rid of, delete, or otherwise remove the Bezier Handles attached to an anchor point?
Fix: Unable to Approve, Edit, or Spam Comments in WordPress
This is a common problem for people using the plugin, “Advanced Access Manager.” If you do not have this plugin, your problem is something else. If you use Advanced Access Manager and have noticed that since installing, the checkbox next to each comment is missing, there is an easy fix for you. It took me a while to track down … Read More