Skip to content
  • home
  • portfolio
  • web design journal
  • blog
    • adventure
    • san diego
    • projects
    • website design
    • code notes

Web Dev

There is no Tracking Information for the Current Branch

May 27, 2022   |   Web Dev

Solve it by specifying the branch on the server (normally I would just do a git pull ‘branch-name’, which fails in this case): git pull origin ‘branch-name’

Read More

CSS Cursor Types

May 26, 2022   |   Web Dev

I can never quite remember the common cursor types. For some reason, I always think the arrow cursor style, which is what you normally have when browsing a page is set as an ‘arrow’ (which isn’t part of the spec), or as a ‘pointer’, because, well, I guess that seems closer to an arrow, which […]

Read More

Javascript – Get Data Attribute

May 25, 2022   |   Web Dev

Get a data attribute from an html tag (in this case, something like data-output=’test’): output = e.srcElement.getAttribute(“data-output”);

Read More

WordPress – Category Page Not Showing Posts With Custom Post Type

May 25, 2022   |   Web Dev

I had created a post type for news articles. Unfortunately, when categorizing the pages, and trying to view the category from the front end, those posts weren’t appearing.   Apparently that doesn’t work for cusotm post types by default. To get them to show, add this to the functions.php file: function namespace_add_custom_types( $query ) {    if( (is_category() || is_tag()) && $query->is_archive() && empty( $query->query_vars[‘suppress_filters’] ) ) {       $query->set( ‘post_type’, array(        ‘post’, ‘news’       ));    } } […]

Read More

WordPress Post Type Supports Options

May 24, 2022   |   Web Dev

– title – editor – comments – revisions – trackbacks – author – excerpt – page-attributes – thumbnail – custom-fields – post-formats’

Read More

WordPress Enable Tags for Custom Post Type

May 24, 2022   |   Web Dev

Just add this line when you register the post type: ‘taxonomies’ => array(‘category’, ‘post_tag’) So something like this for all of the code: register_post_type( ‘customtype’,    array(       ‘labels’ => array(          ‘name’ => __( ‘CustomType’ ),          ‘singular_name’ => __( ‘CustomType’ )       ),       ‘supports’ => array(          ‘title’,’page-attributes’,’description’,’editor’, ‘thumbnail’       ),       ‘public’ => true,       ‘has_archive’ => true,       ‘rewrite’ => array(‘slug’ => ‘customtype’),       ‘taxonomies’ => array(‘category’, ‘post_tag’)    ) );

Read More

Multiline Ellipsis CSS

May 24, 2022   |   Web Dev

Use this, seems to work pretty well. Note, that you don’t want to add any padding on the target element, otherwise it will show text beyond the overflow: .blog-tile-excerpt{    display: -webkit-box;    -webkit-line-clamp: 3;    -webkit-box-orient: vertical;    overflow: hidden; }

Read More

Javascript – Show or Hide an Element

May 24, 2022   |   Web Dev

Showing or hiding an element with javascript: (use “#” for elements by ID, or “.” for elements by class) document.querySelector(“#element”).style.display = ‘block’; document.querySelector(“#element”).style.display = ‘none’;

Read More

Offset a Path in Inkscape

May 28, 2021   |   Web Dev

I used to use drafting programs quite frequently in the past. One common action that I performed quite frequently was offsetting lines, which was pretty simple to do. Every once in a while, I find the need to do something similar in Inkscape. While not quite as easy and straightforward, offsetting paths in inkscape can […]

Read More

Cutting People and Objects Out of Images in Photoshop

March 3, 2021   |   Web Dev

There are many ways to remove image backgrounds in Photoshop, or cut people and other objects out of photos, including some moderately-automatic ways. However, I’ve always found the output of most methods don’t produce results that I’m overly happy with (I just tried the “Object Selection Tool”, and verified that it’s output is less than […]

Read More

Posts navigation

Older posts
Newer posts

drempd | san diego, ca


home contact

adventures san diego projects stream website design

portfolio resume san diego web design freelance web designer

custom web design responsive web design website maintenance