reduce padding between nav bar and image on home, gzip compression code,copyrigh

  • Posted in : Read WP
  • insomnia_tm
    Participant

    Hey guys,

    I was hoping you could help me out with the following:

    When I upload an image on the homepage, it has a big spacing between the nav bar. Can I reduce that spacing (to almost none) only for the homepage?

    The first notice I get on the PageSpeed Insight Tool is to enable compression. I followed numerous tutorials online, but none seemed to produce any results, so I was hoping you would be kind enough to provide me with the html for .haccess.

    Lastly, I would like to decrease the copyright text font, as well as to reduce the padding beneath it.

    Thank you so much and sorry for the long question

    insomnia_tm
    Participant

    I just realized the gzip compression has to do with my server and not you guys, so please disregard that part. Sorry about that

    insomnia_tm
    Participant

    instead, how do i prevent the google fonts I’m not longer using from being loaded because they are render-blocking

    serkan
    Moderator

    Hi
    I need to check your related url to detect the real issue. Could you please provide me your related url?
    Thanks

    insomnia_tm
    Participant

    Yes, of course, thank you!

    it’s https://battlethepain.org/

    I fixed the copyright text spacing issue, so now I just need to figure out how to decrease the space between the photo on the homepage and the menu bar (possibly to the point where there’s no space between the two).

    Also, I would like to figure out how to get rid of / enable caching for the google fonts that come with the theme. I am not using them anymore, as I purchased a custom font.

    Thanks again.

    insomnia_tm
    Participant

    I also just noticed that when viewing on Mobile,

    There’s a random link “blog” on top of the header, do you happen to know how to fix that?
    Is it possible to change mobile menu from the drop-down button to just displaying the links, like it is on desktop

    insomnia_tm
    Participant

    The google fonts are actually resulting in a 404 error. Here’s a screenshot:
    i.is.cc/2xJvBRRX.png

    serkan
    Moderator

    Hi,
    The gap between the photo in the home and the menu can be reduced as follows. The small space is due to the photograph itself.

    .home .hentry p,  .home .hentry p img { margin-top: 0 !important; }
    .home .hentry { padding-top: 0; }

    You can not get rid of / enable caching for the google fonts that come with the theme by default.
    I could not detect the blog random link in mobile view. By default, the feature you want is not mutually exclusive. When we checked the relevant site on Validator, we did not observe any error that affected the operation of your site. You can ignore this error.

    insomnia_tm
    Participant

    Thank you, boss!

    It worked. The link in the header was just a problem with the caching plugin that I worked out. As far as the fonts go, I saw another thread in which you advise someone to do the following:

    Go to appearance > Editor > functions.php and delete;
    wp_enqueue_style( ‘fontello’, $theme_directory . ‘/css/fonts/fontello/css/fontello.css’, null, null );
    and
    wp_enqueue_style( ‘montserrat’, ‘//fonts.googleapis.com/css?family=Montserrat:400,700’ . $subset, null, null );

    The guy you said that to was using another theme, but could the same be done in my case? I’m only saying that because I’m afraid the google bot may look down upon having that error and may potentially dick me over SEO wise. And I’m getting that error from every link checker I run on my site.

    serkan
    Moderator

    Hi, Be very careful when editing your theme function files. A file that you have erased incorrectly can negatively affect the working mechanism. We do not think you will have a problem with Seo.
    Thanks

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register