Logo image not redirecting to homepage

Hey, just started using Grav and looking great!

Two minor issues:

  1. My logo in the left upper corner of my page doesn’t redirect to the homepage. What am I doing wrong? (for example from blog: https://travelogy.nl/blog/sunny-days-in-northern-wales)
  2. Clicking via Instagram bio towards the website results in a very basic website without the styling. Via Macbook it just looks correctly. Also, if I direct go to my website on mobile it shows fine.

Who can help me with this?

1 Like

@Travelogy Hi Jeffrey, I see you are using theme ‘mediator’. This theme is 4 years old, which is also the beginning of Grav. Only a handfull updates/fixes have been applied.

There was already a PR issued to fix the logo problem on Jan. 2016, but it received no response from the developers. I would consider that theme as outdated if not dead.

I would like to suggest you consider moving to one of the more recent themes (eg. Quark), which are based on the latest developments of the Grav and actively maintained.

1 Like

Thanks for your quick reply! Ah, that is a shame :frowning: I chose Mediator because of its simplicity and clean style. So if I can only solve this issue, I’d still like to use it.

With the topic about the logo redirect you already solved the first issue. Do you have any idea how to solve the second issue and/or what the issue is? If that is not to be solved I guess I need to find an alternative theme.

Thanks again!

Logo:
The solution is in the PR issued:wink:

In case you are not familiar with GitHub: The proposed solution is to replace ‘base_url_relative’ by ‘home.url’ in /user/themes/mediator/templates/partials/base.html.twig.

Hope the proposed solution does indeed work…

Instagram:
Sorry…

1 Like

Thanks anyway! It worked :smiley:

For the Instagram part, it’s so weird.

  1. When I click on the URL in biography of Instagram on Macbook (Safari) it works.
  2. When I type in the URL in the browser on my phone (Safari) it works.
  3. When I click on the URL in biography of Instagram on my phone it looks like it has no theme/styling.

If you look in the developer tools of Safari, you will see 2 errors:

  • You are trying to access the fonts using ‘http’ instead of ‘https’.
    Chrome will block these ‘http’ request made by a ‘https’ page.
  • jQuery throws an error on a line of javascript

Not sure if these are the root cause…

1 Like

link rel=“stylesheet” href=“http://brick.a.ssl.fastly.net/Linux+Libertine:400,400i,700,700i/Open+Sans:400,400i,700,700i

So it’s about this part, I think.

Do you know where I can find the root of this font? I can find font-family: Linux Libertine in main.scss, but I don’t know how it loads.

/user/themes/mediator/templates/partials/base.html.twig line 24

<link rel="stylesheet" href="http://brick.a.ssl.fastly.net/Linux+Libertine:400,400i,700,700i/Open+Sans:400,400i,700,700i">

Replace ‘http’ by ‘https’

1 Like

That at least fixed one of the errors!

The other one is in system/assets/jquery (Error: Syntax error, unrecognized expression: a[href*=#]:not([href=#])). Does this mean it’s not in the theme (because it’s in system?).

throw new Error("Syntax error, unrecognized expression: " + a)
}, fa.uniqueSort = function(a) {
var b,
d = [],
e = 0,
f = 0;
if (l = !c.detectDuplicates, k = !c.sortStable && a.slice(0), a.sort(B), l) {
while (b = a[f++])
b === a[f] && (e = d.push(f));
while (e–)
a.splice(d[e], 1)
}

Jeffrey, If I new how to fix the Javascript issue I would have done it for you. But unfortunately I don’t know…

Besides, I have no means to test it and I also don’t know if that issue is the root cause of the styling issue you encountered.

I would like to suggest again that you consider migrating to a modern theme that is actively maintained. Or accept its shortcomings…

You could of course report both issues at the repository of the theme. The last issue that has received attention what Aug. 2016 though…

To cool off your disappointment, you could hammer your keyboard to revoke the ‘love’ you’ve already given :wink:

1 Like

Thanks for all your help! I didn’t find a theme with a blog page similar to my current one in Mediator and I really like that style, so when I see a similar theme I’ll Definitely change.