• Home
  • Showcase
    • Newspaper Showcase
    • Newsmag Showcase
  • Support
    • Newspaper Forum
    • Newsmag Forum
    • Blog
    • Documentation
      • Newspaper Documentation
      • Newsmag Documentation
      • The Theme API
    • What’s New
      • Newspaper
        • What’s New in v 11.5
        • What’s New in v 11.4.3
        • What’s New in v 11.4
        • What’s New in v 11.2
        • What’s New in v 11
        • What’s New in v 10.4
        • What’s New in v 10.3.7
        • What’s New in v 10.3.2
        • What’s New in v 10.3
        • What’s New in v 10
      • Changelog
        • Newspaper
        • Newsmag
        • tagDiv Opt-In Builder
  • Services
    • Web Development Services
    • Web Solutions & CMS Development
    • Web design & Front-end Development
    • E-Commerce Development Services
    • Page Speed Optimization Services
  • Buy Newspaper
Search
tagDiv support
  • Become a member
  • Sign in
  • Home
  • Showcase
    • Newspaper Showcase
    • Newsmag Showcase
  • Support
    • Newspaper Forum
    • Newsmag Forum
    • Blog
    • Documentation
      • Newspaper Documentation
      • Newsmag Documentation
      • The Theme API
    • What’s New
      • Newspaper
        • What’s New in v 11.5
        • What’s New in v 11.4.3
        • What’s New in v 11.4
        • What’s New in v 11.2
        • What’s New in v 11
        • What’s New in v 10.4
        • What’s New in v 10.3.7
        • What’s New in v 10.3.2
        • What’s New in v 10.3
        • What’s New in v 10
      • Changelog
        • Newspaper
        • Newsmag
        • tagDiv Opt-In Builder
  • Services
    • Web Development Services
    • Web Solutions & CMS Development
    • Web design & Front-end Development
    • E-Commerce Development Services
    • Page Speed Optimization Services
  • Buy Newspaper

This forum is now closed to new posts

All existing content remains available to browse and search. For support, please email us at contact@tagdiv.com Our team is happy to help as soon as possible.

Home Newsmag How to add a different logo header on a page

How to add a different logo header on a page

Posted in: Newsmag
Post count: 6
PierreBoullier
#81588
Dec 1, 2015 at 7:53 pm

Hey support team !
I saw a lot of publications about the fact that we could add a different header on different pages of the theme. Is it possible to keep the same header styl (7 in my case) on all the site but only change the logo appearing on a page ?
Is there any
if (is_…) fonction that I can add in Header style 7 php ?

Thank you guys,

Pierre Boullier

Post count: 23312
Catalin
#81724
Dec 2, 2015 at 11:46 am

Hello PierreBoullier,

You can achieve what you want if you use a bit of Css. It is possible this thing without alter your code source. Please try the code below and place it in Theme panel->Custom Css area, like this: http://screencast.com/t/scMiLJl3 .

.td-header-sp-logo {
display: none!important;
}
.home .td-header-sp-logo {
display: block!important;
}

Above, I gave you an example how to display a logo only on your home page. If you want to show the logo to another page, please replace the .home with your page ID. Also, you can find the page ID, using your Inspect element browser, like this: http://screencast.com/t/qPqw9kfOnIUh .

Hope this helps and let us know how it goes!

If is not what you mean, please provide more details about this.

Thank you for message!

Post count: 6
PierreBoullier
#81943
Dec 3, 2015 at 2:09 am

Hi @Catalin-l !

Thank you so much for this response. Actually your solution works fine but involves that i only have my header on the home page + another page of my choice but all the other pages don’t display it anymore.

What I want to do is the opposite, I want to display the same header on all my pages except one where I want another header logo or no header at all.

Is there a way to trick the CSS you gave me to achieve this ?

Thank you again,

Let me know if I’m not clear, ill send screenshots to explain it.

Pierre Boullier

  • This reply was modified 10 years by PierreBoullier.
  • This reply was modified 10 years by PierreBoullier.
Post count: 23312
Catalin
#81973
Dec 3, 2015 at 8:42 am

Hello PierreBoullier,

For a good understanding, please provide me a screenshot to be clear and I should be able to provide a more accurate response.

Thank you!

Post count: 6
PierreBoullier
#82593
Dec 5, 2015 at 9:47 pm

No problem @Catalin-l

So here is the logo header I want to appear on all pages of my website : http://pasteboard.co/2Ew9rL1g.jpg

Except on this page, where I want to chose a different logo header : http://pasteboard.co/2Ew8iX5l.jpg

Hox could I upload a different header to this page but keep the same 1st header on all other pages ?

Hope you understand, I can provide more screenshots if it’s unclear.

Thank you very much,

Pierre Boullier

Post count: 11
szmarinov
#82610
Dec 6, 2015 at 1:36 pm

Hi, guys!
I have similar question and im seeking possible solution. Is it possible to add different logo for each specific category? And also create different design for each category. Such as different frames borders, styles. Thank you in advance!

Post count: 23312
Catalin
#82699
Dec 7, 2015 at 11:40 am

Hello @PierreBoullier,

If you want to achieve a different header logo on your page, it is necessary to add a set of conditions in header-style file and load a different logo image for each page. Below, I gave you an example for header_style_7.

This code should load a different logo image for the pages but only when header style 7 it’s used. If you change the header style you need to apply the customization in the file corresponding with the header style used. Look here: http://screencast.com/t/jSTSxWh2xdl – http://screencast.com/t/girlnlQWHzE

<?php
if (is_page('PAGE-ID')){
    echo '<img src="url image 1">';
}
else {
    locate_template('parts/header/logo.php', true);
}
?>

Also, @szmarinov if you want to add a different logo for each category, you have to replace in code above the function is_page with is_category like this: http://screencast.com/t/RDofG5R4YL – http://screencast.com/t/oIF2jUCn

<?php
if (is_category('CATEG ID')){
    echo '<img src="url image 1">';
}
elseif (is_category('CATEG ID')){
    echo '<img src="url image 2">';
}
else {
    locate_template('parts/header/logo.php', true);
}
?>

For more information about function Reference you should see here: https://codex.wordpress.org/Function_Reference/is_page

Hope this helps and let us know how it goes!

Thank you for the message!

Post count: 6
PierreBoullier
#82828
Dec 7, 2015 at 5:26 pm

Dear @Catalin-l,

It worked really well.
Thank you for your precious help.
Where can i submit a positive review about you ?

Thanks again and have an awesome day,

Pierre Boullier

Post count: 23312
Catalin
#82831
Dec 7, 2015 at 5:31 pm

Hello PierreBoullier,

Glad, that I could helped!

Thank you!

Post count: 6
PierreBoullier
#93180
Feb 4, 2016 at 12:55 pm

Hi Catalin.

Sorry to get back in touch with you. The code you provided is working perfectly fine on the header7.php to display a different header on each page on the desktop version. (else if)

Unfortunately on the mobile version, the header is the same everywhere… What can I do to apply the different headers to the mobile version too ?

Also, the header picture is really really small on the mobile version and I do not understand why. Is there any settings I could change or is it linked to the Header 7 style ?

Thanks a lot,

Pierre

Post count: 6535
Andrei L.
#93361
Feb 5, 2016 at 9:21 am

Hi

To have a different header for mobile devices you need modify header-menu.php file and add the conditions here: http://screencast.com/t/5ChyQV2Ov
The logo size differ from a header style to another, you can find more details about this in our documentation: https://forum.tagdiv.com/newsmag-logo-favicon/ Its size can be increased with some custom css so please provide your site url so I can take a closer look and maybe i can help you.

Thanks!

Post count: 6
PierreBoullier
#93607
Feb 6, 2016 at 2:01 pm

Hey @andrei_luca

I found the header-menu.php file, but I don’t figure out what should I change to have my different headers as I have on the desktop version ? Should I change the “true” or “false” values ? Sorry I’m not really into coding.

Here is the link of my website : http://www.questions-de-management.com
As you can see on mobile version, the header is really really small.

Thanks a lot !

Pierre

Post count: 6535
Andrei L.
#93775
Feb 8, 2016 at 10:21 am

Hi

The code should look like in this screen: http://screencast.com/t/NJtcqnrJ Just replace all code from header-menu.php file with this one: http://pastebin.com/19NaFmcg and replace the page id and image url as i indicated in the screen.
To increase the logo size on mobile devices use this css in theme panle > custom code > custom css: http://screencast.com/t/OMrlgBHyp1yv and modify the width value as you want:

@media (max-width: 767px){
.td-main-menu-logo img {
width: 70%;
}
}

Thanks!

Viewing 13 posts - 1 through 13 (of 13 total)
The forum ‘Newsmag’ is closed to new topics and replies.
PierreBoullier
Support Hours (GMT+2)

Monday - Friday:
8:00 AM - 17:00 PM

Documentation
  • Newspaper
  • Newsmag
Facebook Instagram Twitter Youtube
Welcome to the Community! This is our main Support Center and, also the place where you can make new friends, people just as passionate about websites as you are. Don’t hesitate to ask for help as we are here for you. Thank you for buying our products!
Contact us: contact@tagdiv.com
  • Home
  • Blog
  • Forums
  • About us
  • Support policy
  • Privacy Policy
© tagdiv.com | Proudly made with by tagDiv. All rights reserved
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-advertisement1 yearThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Advertisement".
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
CookieDurationDescription
_ga2 yearsThis cookie is installed by Google Analytics. The cookie is used to calculate visitor, session, campaign data and keep track of site usage for the site's analytics report. The cookies store information anonymously and assign a randomly generated number to identify unique visitors.
_gat_gtag_UA_43963494_11 minuteThis cookie is set by Google and is used to distinguish users.
_gid1 dayThis cookie is installed by Google Analytics. The cookie is used to store information of how visitors use a website and helps in creating an analytics report of how the website is doing. The data collected including the number visitors, the source where they have come from, and the pages visted in an anonymous form.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
CookieDurationDescription
IDE1 year 24 daysUsed by Google DoubleClick and stores information about how the user uses the website and any other advertisement before visiting the website. This is used to present users with ads that are relevant to them according to the user profile.
test_cookie15 minutesThis cookie is set by doubleclick.net. The purpose of the cookie is to determine if the user's browser supports cookies.
VISITOR_INFO1_LIVE5 months 27 daysThis cookie is set by Youtube. Used to track the information of the embedded YouTube videos on a website.
YSCsessionThis cookies is set by Youtube and is used to track the views of embedded videos.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
CookieDurationDescription
CONSENT16 years 5 months 26 days 13 hours 25 minutesNo description
yt-remote-connected-devicesneverThis cookies is set by Youtube and stores the user's video player preferences using embedded YouTube video.
yt-remote-device-idneverThis cookies is set by Youtube and stores the user's video player preferences using embedded YouTube video.
SAVE & ACCEPT
Powered by CookieYes Logo