Trademark in the Navigation Bar
This is the support thread for the mod that adds the company name to the Navigation Bar on the desktop, mobile, and tablet views. It allows a site to have the legal name prominently displayed at the top of every page the customer visits.
It applies to versions 1.5.7, 1.5.8, and the current 2.0.0 beta.
When approved, this mod will be available at https://www.zen-cart.com/downloads.php?do=file&id=2378
The current github locastion for the mod is https://github.com/dbltoe/Trademark
If you find this mod helpful, donate to the Zen Cart Project
Re: Trademark in the Navigation Bar
For ZC 2.1.0., this can be done a lot easier by using the existing store name and eliminating the need for language files.
For bootstrap template, add the following line as a new line in includes/templates/YOUR_TEMPLATE/common/tpl_header.php after
Code:
<nav class="navbar fixed-top mx-3 navbar-expand-lg rounded-bottom" aria-label="<?= TEXT_HEADER_ARIA_LABEL_NAVBAR ?>"><nav class="navbar fixed-top mx-3 navbar-expand-lg rounded-bottom" aria-label="<?= TEXT_HEADER_ARIA_LABEL_NAVBAR ?>">
Code:
<?php echo STORE_NAME; ?></p>
in responsive_classic, search for the following:
Code:
<?php if ( $detect->isMobile() && !$detect->isTablet() || $_SESSION['layoutType'] == 'mobile' ) {
echo '<div class="header Fixed"><a href="#menu" title="Menu"><i class="fa-solid fa-bars"></i></a></div>';
} else if ( $detect->isTablet() || $_SESSION['layoutType'] == 'tablet' ){
echo '<div class="header Fixed"><a href="#menu" title="Menu"><i class="fa-solid fa-bars"></i></a></div>';
} else {
Replace that with:
Code:
<?php if ( $detect->isMobile() && !$detect->isTablet() || $_SESSION['layoutType'] == 'mobile' ) {
echo '<div class="header Fixed"><a href="#menu" title="Menu"><i class="fa-solid fa-bars"></i></a><?php echo STORE_NAME; ?></p></div>';
} else if ( $detect->isTablet() || $_SESSION['layoutType'] == 'tablet' ){
echo '<div class="header Fixed"><a href="#menu" title="Menu"><i class="fa-solid fa-bars"></i></a><?php echo STORE_NAME; ?></p></div>';
} else {
For your CSS:
In bootstrap, add the following to your site_specific_styles.php:
Code:
`.tradeMark {float:left;
margin:0;
padding:0;
color: #FFFFFF; (or the code for .leftBoxHeading)
font-size: 1em;
font-weight:normal;
}
If you are using responsive_classic or a clone thereof, I suggest you should have an override css stylesheet like includes/templates/YOUR_TEMPLATE/stylesheet_zcustom.css add the above rule to that file.
Re: Trademark in the Navigation Bar
What jurisdiction is demanding this? And how do they define "prominently"?
The normally-nitpicky EU is ok with a link in the footer to the legal contact details of the shop owner.
Re: Trademark in the Navigation Bar
A US trademark lawyer in New Hampshire was the driving force behind this for topkayakerDOTcom.
It was require to issue a trademark.
The trademark name had to be somewhere in the text of every page.
All I know is the attorney said just having the URL matching did not suffice, but doing it as we did complied with the law as was interpreted by the lawyer.
I thought it odd that not R, TM or C was required, but was told it was not.
To me, it seemed like a good idea regardless. It keeps your name in front of the customer.