Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1207036
    carlosca
    Participant

    Hi:

    I’m trying to get some icons to show on links on a Card element, but the icons do not show. This is the code I used:

        <li><a title="Enviar eMail" href="mailto:[email protected]"><i class="x-icon x-icon-envelope"></i> Enviar eMail</a></li>
        <li><a title="FB Iglesia" href="https://www.facebook.com/tiempocomunion" target="_blank"><i class="x-icon x-icon-facebook"></i> FB Iglesia</a>
    

    This is the page: http://x.iglesiant.org/nueva-prueba/ (the card to the right) where the icons do not show.

    However, on this page: http://x.iglesiant.org/nuestras-iglesias/ where I don’t use Cards, the icons appear ok.

    Am I doing something wrong, or do icons NOT work inside Card elements?
    Thanks in advance.

    #1207269
    Joao
    Moderator

    Hi There,

    Please try using the following code for the icons instead:

    
    <i class="x-icon x-icon-envelope" data-x-icon="" aria-hidden="true"></i>
    
    <i class="x-icon x-icon-facebook" data-x-icon="" aria-hidden="true"></i>

    Let us know how it goes,

    Joao

    #1210237
    carlosca
    Participant

    Thank you for your answer, Joao.
    That’s the first code I used and, as a matter of fact, is the one I’m using on the page that shows the icons: http://x.iglesiant.org/nuestras-iglesias/

    But it does not work, for some reason, inside a Card element…

    🙁

    #1210322
    Rupok
    Member

    Hi there,

    If you use the code provided by Joao, it should work. I have tested to insert this on your page and it seems working – http://prntscr.com/cs7ddq

    And also your code doesn’t seems same as the other page’s code as it missing the data-x-icon value :

    <i class="x-icon-facebook"></i>

    Let’s try to put the complete code like this :

    <i class="x-icon x-icon-facebook" data-x-icon="" aria-hidden="true"></i>

    Thanks!

    #1215365
    carlosca
    Participant

    Hello again, Rupok:

    Very weird behavior… This is what I placed inside my Cornerstone Card Element for the links:

    <ul>
        <li><a title="Enviar eMail" href="mailto:[email protected]"><i class="x-icon-envelope" data-x-icon="" aria-hidden="true"></i> Enviar eMail</a></li>
        <li><a title="FB Iglesia" href="#" target="_blank"><i class="x-icon x-icon-facebook" data-x-icon="" aria-hidden="true"></i> FB Iglesia</a></li>
    </ul>
    

    THIS is what shows when I display the source code for the page:

    <ul><br />
        <li><a title="Enviar eMail" href="mailto:[email protected]"><i class="x-icon-envelope"></i> Enviar eMail</a></li><br />
        <li><a title="FB Iglesia" href="#" target="_blank"><i class="x-icon x-icon-facebook"></i> FB Iglesia</a></li><br />
    </ul>
    

    On top of eliminating the ‘data-x-icon=”whatever” aria-hidden=”true”‘ part, Cornerstone is ADDING <br />’s on every line!

    Please check the page again, it’s changed: http://x.iglesiant.org/nueva-prueba/

    Thanks again for your kind attention.

    #1215701
    Paul R
    Moderator

    Hi,

    Please change your code to this.

    
    <ul><li><a title="Enviar eMail" href="mailto:[email protected]"><i class="x-icon-envelope" data-x-icon="" aria-hidden="true"></i> Enviar eMail</a>
        </li><li><a title="FB Iglesia" href="#" target="_blank"><i class="x-icon x-icon-facebook" data-x-icon="" aria-hidden="true"></i> FB Iglesia</a></li></ul>
    

    Hope that helps

    #1216116
    carlosca
    Participant

    Please see the above message to Rupok… That’s EXACTLY what I placed inside my Cornerstone Card Element. However, when the page is composed and displayed, the “data-x-icon…” part is ommitted…

    http://x.iglesiant.org/nueva-prueba/

    I’ve changed the second column, to include a Text Element, instead of a Card element. Here, the code is “respected”, but I’m still getting boxes instead of the appropriate icons…

    ;(

    #1216225
    carlosca
    Participant

    Correction… on my pc the results are as follows (see attachment #1) – boxes instead of icons…
    However, on my iPhone/iPad the results are that the icons don’t show at all! (see attachment #2)

    #1216251
    carlosca
    Participant

    Never mind… I just decided I’m wasting precious time for something that should be dumb-proof. Eliminated the icons, will leave the links alone – too bad!!

    #1216629
    Rad
    Moderator

    Hi there,

    I see, thanks for sharing. Let us know if there is something we can help with 🙂

    Thanks!

  • <script> jQuery(function($){ $("#no-reply-1207036 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>