Can’t wrap my head around this function – any help would be appreciated

Your problem is that you return nothing if some of the options doesn’t meet your criteria. For example, you are doing this: if ( $header_container == get_theme_mod( ‘header_container_background_color’, ‘#e6e6e6’ ) ) return; So, if $header_container is equal to #e6e6e6, the function return and stop further execution. You have to change that logic. For example (just … Read more

need help with ‘… read more’ excerpt in functions.php

Took me a couple of blind tries, but I got it. Before: <a class=”view-article” href=”‘ . get_permalink($post->ID) . ‘”>’ . __(‘View Article’, ‘html5blank’) . ‘</a>’; After: <a data-toggle=”modal” data-target=”#modal-‘ . $post->ID . ‘ ” class=”over”>’ . __(‘View Article’, ‘html5blank’) . ‘</a>’

Edit TinyMCE Button Functionality

Different Purposes The alignright class is used for floating elements where as the “Align Right” TinyMCE button is for changing the text justification. Those are actually fundamentally different things. If the button worked as you described it, then either one or text or images wouldn’t behave as expected. Solution Instead, I would recommend you add … Read more