Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ndiego/97a6964684faed92f3d692106937c385 to your computer and use it in GitHub Desktop.
Save ndiego/97a6964684faed92f3d692106937c385 to your computer and use it in GitHub Desktop.
/* Edit the block id to match the block you are working on */
#blox_global_110 .blox-caption-container {
display: table; /* Required to vertically center text */
height: 100%; /* Make container cover whole image */
text-align: center; /* Center align the page title */
top: 0; /* Make container cover whole image */
}
#blox_global_110 .blox-caption-wrap {
background: none; /* Remove overlay */
display: table-cell; /* Required to vertically center the page title */
vertical-align: middle; /* Vertically center the header over the image */
}
#blox_global_110 .blox-caption-wrap h1 {
color: #fff;
font-size: 50px;
}
/* Mobile Styles for Default Genesis Theme */
@media only screen and (max-width: 800px) {
#blox_global_110 .blox-image-wrap.blox-image-background {
height: 300px; /* Make image look a little better on mobile */
}
#blox_global_110 .blox-caption-wrap h1 {
font-size: 36px; /* Make page title look a little better on mobile */
}
}
// Remove the title from Tag archive pages
// This code needs to be added via the Sandbox Addon or be added directly to your functions.php file
// Refer to https://codex.wordpress.org/Function_Reference/is_tag
add_action( 'genesis_before', 'blox_remove_tag_title' );
function blox_remove_tag_title() {
if ( is_tag() ) {
remove_action( 'genesis_before_loop', 'genesis_do_taxonomy_title_description', 15 );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment