Here is a Drupal custom breadcrumb for content type snippet that I used to build a nice long breadcrumb chain for a specific content…
Latest posts - Page 8
WordPress add page slug to body CSS class
This is a life saver when it comes to theming websites. WordPress add page slug to body CSS class is a neat trick to…
WordPress list taxonomy terms from custom vocabulary
This is how you can print taxonomy terms form a custom vocabulary in the post template. WordPress print taxonomy terms from custom vocabulary.
Show WordPress font selector in text editor, wysiwyg
By default font selector is hidden. If you want to show WordPress font selector in text editor all you need to do is add…
Drupal 8 add JavaScript and CSS to a page
This is how you add Drupal 8 JavaScript and CSS to a certain page in your custom theme instead of the methods we are…
jQuery Select Deselect All Checkboxes
I needed buttons to select and deselect all check boxes in a <fieldset> on a page. This was such a recurring issue that I…
BuddyPress get url to profile page
BuddyPress templates are tricky, I was adding a user icon to a menu bar, and I needed to print a link to the current…
Drupal 8 change image style on user page
I needed to change image style on the user page, and I also needed to theme some fields. I was able to do everything…
Drupal 7 create an iframe from a node for embedding
Drupal 7 create an iframe from a node for embedding Here is the following situation: You have a content type in Drupal 7 that…
Drupal 7 check if page is using panels
In drupal 7 check if page is using panels is just one line of code but comes in handy very often. Some times you…