[resolved] padding-top: 159px (19 posts)

  1. carolinezambon
    Posted 2 years ago #

    Hello again! First thank you very much for helping me!!! =))

    I created a child theme and this padding-top:159px is driving me crazy!
    This code is on the top of the page: <div id="page" class="hfeed site" style="padding-top: 159px;">
    This 159px is disturbing the to of the Blog :(( WHERE is this 159px? I searched for all files and nothing...

    Thank you very much!!!

  2. Hi Carol, could you provide a link to the site so I can take a look directly? Thanks.

  3. carolinezambon
    Posted 2 years ago #

    Hi Kathryn, this is the link http://www.blogdaprica.com.br/

    This code is on the top of the page: <div id="page" class="hfeed site" style="padding-top: 159px;">

    Thank you very much!!!

  4. Hi Carol, it looks like your site is set to private - would it be possible to allow me to see it?

    Otherwise, could you try turning off all your plugins temporarily to see if one of them might be adding that inline padding?

  5. carolinezambon
    Posted 2 years ago #

    Hi Kathryn, I turned to public know. There are 3 plugins working now. I turned off the plugins but nothing happened just appeared a blank space above the menu omg!

  6. Did you create a copy of header.php for your child theme, or did you edit the original?

    If you created a copy for the child theme, could you copy-paste the contents of the file in a Pastebin - and then link to them here so I can take a look.


    If you edited the original copy of header.php, could you also paste the code in a Pastebin so I can take a peek? Thanks.

  7. carolinezambon
    Posted 2 years ago #

    Thats here http://pastebin.ca/2464779
    No header child

    This 159px is not working when I access the blog using chrome but when I access using Sarafi, I can see this 159px above the header :(

    Thank you very much!

  8. Thanks very much. It looks like you're using Superhero 1.0.0, but the current version is 1.1.1, which fixes a few issues related to the header area in one of the JavaScript files.

    Could you please upgrade your theme to that version and let me know how it goes? Be sure to also update your child theme as needed. Thanks!

  9. carolinezambon
    Posted 2 years ago #

    But when I upload the theme, will I lose every modification that I made?

  10. As long as you didn't make any edits to the parent theme, and kept your changes to the child theme only, you won't lose any tweaks. That's actually the point of child themes, so you can update the parent theme without losing your customizations. :-)

    To be safe, please first make a backup copy of both your parent and child themes.

  11. carolinezambon
    Posted 2 years ago #

    Hi Kathryn, I uploaded the theme but its still the same and a little bigger. Now it's padding-top is 315px! :o

    I realized that when I'm logged this padding-top doesn't appears (but it's still there in the code). This can be related to the top bar but I don't see any relation...

    Thank you

  12. Hi Carol, thanks for updating the theme. I know we tried this before, but would you mind deactivating all your plugins and leaving them off for a bit, so I can have a look directly? Thanks.

  13. carolinezambon
    Posted 2 years ago #

    Hi Kathryn, no problem. I have deactivated all plugins. Thank you!

  14. Thanks, Carol.

    Could you please try reverting back to the default stylesheet to see if the issue goes away?

    Be sure to make a backup copy of your modified CSS file first.

    If that doesn't help, you may need to start over from scratch with a totally fresh copy of the theme and a blank child theme, and add your tweaks back one by one.

    Let me know how it goes.

  15. Could you also try removing your custom header image and see if that makes a difference?

  16. carolinezambon
    Posted 2 years ago #

    Well Kathryn, I think we are almost getting there! I removed my css and I using just the original style.

    Now its appearing padding-top?133px (from fixed nav). I removed this fixed menu using css because I dont want to use it. I want the big image and the tradicional menu :(

    (I removed the image and it was the same way)


  17. Great - looks like things are back to normal, then.

    If you don't like the way this theme works/looks, you may just want to try a different theme instead. This theme uses some special JavaScript to get the header to be fixed, with the rest of the page positioned in exactly the right spot - by adding padding, as you saw - so that it doesn't overlap with the header. It would probably be simpler to switch themes rather than try to tweak it to act differently.

  18. carolinezambon
    Posted 2 years ago #

    Hi Kathryn, you said the magic word JScript! I completely forgot about the JScript. This code was in the superhero.js =)) Everything is write now! Its just not working on my chrome (ios) but thats find now. Super simple and I missed this!!!!

    Thank you very much Kathryn for all your patience and knowledge!!! =))

  19. You're very welcome - glad it's working as you'd like now. :-)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic


No tags yet.