Skip to content
All gists
Back to GitHub
Sign in
Sign up
Sign in
Sign up
{{ message }}
Instantly share code, notes, and snippets.
ndiego
/
blox_tutorial_banner_image_tags_page_title.css
Created
Apr 19, 2016
Star
0
Fork
0
Star
Code
Revisions
1
Embed
What would you like to do?
Embed
Embed this gist in your website.
Share
Copy sharable link for this gist.
Clone via HTTPS
Clone with Git or checkout with SVN using the repository’s web address.
Learn more about clone URLs
Download ZIP
Raw
blox_tutorial_banner_image_tags_page_title.css
/* 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
:
50
px
;
}
/* Mobile Styles for Default Genesis Theme */
@media
only
screen
and
(
max-width
:
800
px
) {
#
blox_global_110
.
blox-image-wrap
.
blox-image-background
{
height
:
300
px
;
/* Make image look a little better on mobile */
}
#
blox_global_110
.
blox-caption-wrap
h1
{
font-size
:
36
px
;
/* Make page title look a little better on mobile */
}
}
Raw
blox_tutorial_banner_image_tags_page_title.php
//
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
You can’t perform that action at this time.
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.