Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make site title text clickable #248

Open
Timmmm opened this issue Aug 12, 2018 · 1 comment
Open

Make site title text clickable #248

Timmmm opened this issue Aug 12, 2018 · 1 comment

Comments

@Timmmm
Copy link
Contributor

Timmmm commented Aug 12, 2018

You can click on the logo to go home but it would be nice if you could click on the text too.

@Timmmm
Copy link
Contributor Author

Timmmm commented Aug 12, 2018

Solution is:

  1. Edit base.html from
        <a href="{% url 'home' %}">
          {% block logo %}
            <img src="{% static 'images/logo.png' %}" height="48" alt="logo"/>
          {% endblock logo %}
          </a>
          <h2>{% block page_title %}SPEED CENTER{% endblock page_title %}</h2>

To

        <a href="{% url 'home' %}">
          {% block logo %}
            <img src="{% static 'images/logo.png' %}" height="48" alt="logo"/>
          {% endblock logo %}
          <h2>{% block page_title %}SPEED CENTER{% endblock page_title %}</h2>
        </a>

(The indentation is a bit wrong there anyway).

  1. The link is blue by default so edit main.css and add
div.header a {
    color: black;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant