Skip to content

Issue with glyphicons in Extensions (adding to site) tutorial #1817

Open
@neilsquibb

Description

@neilsquibb

Issue description

Hi there.

Super new to programming and Django (this is actually my first post on GitHub, so double apologies), so I hope I am correct about the issue and that this is the right way to report it. Apologies if not, and feel free to delete.

I was doing the Extension tutorial on adding to my website, when I noticed neither the post_draft_list or post_remove icon or text was showing on my site. I did some digging around and it looks like the problem was the line

<span class="glyphicon glyphicon-remove"></span>

(and the similar line for delete) needed a class in the CSS (or something like that?) which wasn't provided (I think this was the problem anyway, not sure?).

I did a Google dive, and found that the Spanish version of the main tutorial contained a similar line including glyphicons (rather than include) for the new post button (on the Forms page: https://tutorial.djangogirls.org/es/django_forms/) on the 'Link to a page with the form' section. On the Spanish version of the tutorial it had

<span class="glyphicon glyphicon-plus"></span>

, whereas the English version (https://tutorial.djangogirls.org/en/django_forms/) had {% include './icons/file-earmark-plus.svg' %} instead. This lead me to believe that maybe the English version had been updated and the Spanish version was older?

Through deduction, I am guessing maybe the lines that contained reference to glyphicons in the Extension are aiming at a piece of code provided in an older version of the main tutorial, before it was updated? ...or I could have just made a mistake and the problem could be elsewhere? Haha.

Either way, the glyphicon lines weren't working for me, so my solution was to grab another couple of icons from the Bootstrap pack and used them instead, with {% include './icons/trash.svg' %} and {% include './icons/list' %}, whilst adding the new icons to my blog/icons folder. This did the trick nicely.

I hope this helps others if they are having the same issue!

Once again apologies if I have put this in the wrong place. I am still working out this stuff.

Thank you so much for the amazing tutorial! It has helped me loads.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions