Last active
August 29, 2015 13:56
-
-
Save srikat/8913467 to your computer and use it in GitHub Desktop.
Adding current date to the right of Header menu in Agency Pro. http://sridharkatakam.com/add-current-date-right-header-menu-agency-pro/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('widget_text', 'do_shortcode'); | |
add_shortcode('today_date', 'get_today_date'); | |
function get_today_date($atts) { | |
// return date('F j, Y'); | |
return date_i18n( get_option( 'date_format' ) ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.site-header .widget-area { | |
width: auto; | |
} | |
.site-header .widget { | |
float: left; | |
} | |
.site-header .textwidget { | |
padding: 1.7rem 0 1.7rem 5rem; | |
color: #D7C603; | |
} | |
@media only screen and (max-width: 1023px) { | |
.site-header .textwidget { | |
padding: 1rem 0 1rem 5rem; | |
} | |
.site-header .widget-area { | |
float: none; | |
margin: 0 auto; | |
display: table; | |
} | |
} | |
@media only screen and (max-width: 680px) { | |
.agency-pro-home .wrap { | |
max-width: none; | |
} | |
} | |
@media only screen and (max-width: 507px) { | |
.site-header .widget { | |
float: none; | |
} | |
.site-header .widget-area { | |
text-align: center; | |
} | |
.site-header .textwidget { | |
padding-left: 0; | |
padding-right: 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment