• Resolved rinart73

    (@rinart73)


    I have the following header settings:
    Desktop:
    1 line – Logo + Additional menu
    2 line – HTML code (shortcode showing random post)
    3 line – Main menu + Search button
    Mobile:
    1 line – nothing
    2 line – HTML code (shortcode showing random post)
    3 line – Logo + Menu button

    The problem is that second line with HTML code is being duplicated – once for desktop, another time for mobile, even though it’s identical in every setting. As a result I’m having 2 different random posts.
    I understand why it’s happening – you decided to completely separate desktop & mobile header to allow for greater customization.

    But it would be great to have an option that would say “This line is universal & shared between desktop & mobile. Don’t duplicate it”

    • This topic was modified 4 years, 9 months ago by rinart73.
    • This topic was modified 4 years, 9 months ago by rinart73.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter rinart73

    (@rinart73)

    UPD: At the same time, line background and text colors are being set for both desktop & mobile at the same time.

    • This reply was modified 4 years, 9 months ago by rinart73.
    Mat

    (@mateithemeisle)

    Hello @rinart73 ,

    Thank you for using Neve and for reaching out!

    Neve has the option to customize each device separately so unless custom modifications have been made to the theme, changes for desktop shouldn’t affect other changes made for mobile for example.

    However, each site is unique and issues might arise. What you are describing seems like it could be handled with some css.

    Would you please provide the URL to the website so we can take a look and see If we can help?

    Thank you and have an amazing day!

    Thread Starter rinart73

    (@rinart73)

    Unfortunately the website is currently on a local machine.

    Mat

    (@mateithemeisle)

    Hello @rinart73 ,

    If you are using a local environment I cannot take a look at your website and provide feedback. However, you could replicate your local environment by using https://jurassic.ninja/ where you can create a WP instance that will self-destroy after 7 days.

    After you replicate the issue there, you could provide the login details here (as it is a test environment and no personal data is needed) and we can take a look.

    Please let me know if this works for you!

    Thank you and have an amazing day!

    Thread Starter rinart73

    (@rinart73)

    I solved the issue by removing content from middle mobile header completely and adding styles to always display desktop middle header no matter screen width.

    • This reply was modified 4 years, 9 months ago by rinart73.

    Hi, @rinart73!

    We are glad to hear your issue was solved!

    Have a great day!

    Hi, @rinart73 & Neve team, I’m working on solving this same issue. The application I am using can’t have my custom html code twice on one page or it breaks it’s function.

    Is there any chance you’d be willing to share more details on your styling solution? Did you simply use the Additional CSS to implement an overwrite of a specific class/middle header identifier?

    I am hoping to do the same thing and I’d be grateful for anything more you’d be willing to share.

    Thanks!

    Thread Starter rinart73

    (@rinart73)

    @k33lkeith Hello. As I said I completely removed content from the mobile middle header and left the code only in the desktop middle header.
    Then I added this to the theme custom CSS:
    .header-main {
    display: block;
    }

    As a result desktop middle header is now displayed for mobile too.

    Great! Thanks @rinart73 for the time to respond. Worked for me as well.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Header is being duplicated’ is closed to new replies.