Skip to content

Instantly share code, notes, and snippets.

@srikat
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save srikat/8913467 to your computer and use it in GitHub Desktop.
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/
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' ) );
}
.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