Support » Plugin: Page scroll to id » Font get lost when navigation to page is done through plugin

  • Hi, thank you for the plugin.
    However, I have some issues.
    First, when I click to one of Who we are menu items from a different page, I navigate to the correct place but with the font changed and the icons turned to squares.
    Try to copy paste the URL in the browser immediately and this issue will not appear.

    Second, if I copy paste the URL in the browser the sub menu items will not be highlighted when scrolling.

    Thanks in advance for your help.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author malihu

    (@malihu)

    Hello,

    1)I copy/pasted the URL http://www.emissa.org/who-we-are-2/ directly in the browser (Chrome) and your custom fonts are not loaded.

    This issue has nothing to do with the plugin. This happens because you’re loading the custom fonts (those include your icons) from SSL:
    https://www.emissa.org/...
    while your URL doesn’t use https

    This is the console error I get in Chrome:

    Access to Font at 'https://www.emissa.org/...ttf' from origin 'http://www.emissa.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www.emissa.org' is therefore not allowed access.

    If you load your site with SSL, e.g. https://www.emissa.org/who-we-are-2/ the issue will not happen, because the request and respond URLs are SSL (i.e. https).

    You should change either your fonts URL (to use http) or change your site to use https.

    2)Did you use plugin’s classes in your theme’s CSS to highlight the links you want? Check the following guide in plugin’s tutorial:

    http://manos.malihu.gr/page-scroll-to-id-for-wordpress-tutorial/#links-highlighting-section

    Hope this helps

    thank you very much.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Font get lost when navigation to page is done through plugin’ is closed to new replies.