Skip to content
This repository was archived by the owner on Feb 17, 2026. It is now read-only.
This repository was archived by the owner on Feb 17, 2026. It is now read-only.

Does BigText work with <a href> links? #107

@mercenarri

Description

@mercenarri

Hey man, loving this BigText JS. I've got it to work with your "span" demo but when I change the span to "a" anchor points it seems to break. Can I get it to work with a-href links?

Using "p" paragraphs instead of spans seems to work fine when I set the child selector to "> p". But changing it to "> a" as shown below doesn't want to work. The same happens if I try to use "ul" lists with links in them. Any help would be appreciated!

<div id="bigtext">
         <a href="#">project one</a>
         <a href="#">project two</a>
         <a href="#">project three</a>
         <a href="#">project four</a>
         <a href="#">project five</a>
</div>

<script src="//ajax.googleapis.com/ajax/libs/webfont/1/webfont.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="/js/bigtext.js"></script>
<script>
    $(function() {
        WebFont.load({
            custom: {
                families: ['Oswald'], // font-family name
                urls : ['/css/main.css'] // URL to css
            },
            active: function() {
                $('#bigtext').bigtext({
                    childSelector: '> a'
                });
            }
        });
    });
</script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions