Current Date in Header

Permalink Browser Info Environment
Hi,

I would like to remove the date in the header if possible, but have not been able to locate the proper file to edit at this point.

When the site is resized for mobile devices the date interferes with the navigation menu.

Suggestions?

Marvin

Type: Discussion
Status: New
marvinjr
View Replies: View Best Answer
c5mix replied on at Permalink Best Answer Reply
c5mix
To remove it entirely, comment out or remove this line in the theme's header.php file (located at packages/theme_viewport/themes/viewport/elements/header.php):
<p class="right"><?php echo date('F j, Y')?></p>

Or you could just not display it via css like this (you could add this snippet to the Custom CSS box in the Customize panel located at Dashboard->Pages and Themes->Click Customize button next to ViewPort):
#header-top p.right { display:none; }

Or if you just don't want it to display on mobile version, add that above snippet to the theme's mobile.css file (located at packages/theme_viewport/themes/viewport/mobile.css)
marvinjr replied on at Permalink Reply
marvinjr
Thanks for the reply and the solution.
c5mix replied on at Permalink Reply
c5mix
You're welcome!
marvinjr replied on at Permalink Reply
marvinjr
Is it okay to add another question here? Well, here goes. I have used the Slate theme and have edited the pagemeta.php to remove the sub-navigation/page names, but I don't see where to do the same thing in ViewPort.
c5mix replied on at Permalink Reply
c5mix
The breadcrumbs are outputted in the header.php file (located at theme_viewport/themes/viewport/elements/header.php). The page names are outputted in each page type file (so for the Article page type it would be in article.php).

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.