Skip to content
Grav 2.0 is officially stable. Read the announcement →
Themes & Styling

Logo image not redirecting to homepage

Solved by pamtbaau View solution

Started by Jeffrey 8 years ago · 10 replies · 876 views
8 years ago

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. Foto%2018-08-18%2019%2052%2045|281x500

Who can help me with this?

👍 1
8 years ago

@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
last edited 08/18/18 by pamtbaau
8 years ago

Thanks for your quick reply! Ah, that is a shame :( 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!

8 years ago Solution

Logo:
The solution is in the PR issued... 😉

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
8 years ago

Thanks anyway! It worked 😃

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.

8 years ago

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
8 years ago

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

TXT
<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
8 years ago

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)
}

8 years ago

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 ;-)

👍 1
last edited 08/19/18 by pamtbaau
8 years ago

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.

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by Pedro M, 2 months ago
4 226 2 months ago
Themes & Styling · by Ian, 2 months ago
3 119 2 months ago
Themes & Styling · by Norbert, 2 years ago
11 483 3 months ago
Themes & Styling · by Lukáš Findeis, 3 months ago
0 73 3 months ago
Themes & Styling · by Sebadamus, 4 months ago
5 152 3 months ago