Jump to content
Fórum Script Brasil
  • 0

como colocar link em icons fontawesome em site


Question

 <div class="container pb30 pt15">
                                <div class="row">
                                    <?php foreach ($servico->db->data as $s): ?>
                                        <div class="col-sm-3">
                                            <article class="boxIcon">
                                                <a href="javascript:void(0);" style="cursor:default">
                                               <div class="icon"><i class="<?= stripslashes($s->servico_icon) ?> iconBig iconRounded"></i></div>
                                                    <h2><?= stripslashes($s->servico_nome) ?></h2>
                                                    <p><?= stripslashes($s->servico_descricao) ?></p>   
                                                </a>
                                            </article>
                                        </div>

image.png.bd67bd4768293dec147445aae96e48bc.png

Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
15 horas atrás, lowys disse:

Tente trocando o javascript:void(0); pelo link e removendo o style="cursor:default"

Muito obrigado, funcionou certinho agora está como link os ícones...

<article class="boxIcon">
                                                <a href="https://www.ctrecomecar.com.br/post/convenios/57/">
            <div class="icon"><i class="<?= stripslashes($s->servico_icon) ?> iconBig iconRounded"></i></div>
                                                    <h2><?= stripslashes($s->servico_nome) ?></h2>
                                                    <p><?= stripslashes($s->servico_descricao) ?></p> 
                                                </a>
                                            </article>
                                        </div>

15 horas atrás, lowys disse:

Tente trocando o javascript:void(0); pelo link e removendo o style="cursor:default"

me ajudou muito mas me deparei com outro problema, são 4 ícones diferentes, como adicionar link no ícone especifico, esses ícones são adicionadas através do painel admin.

image.thumb.png.9877c19a5673d4659037a5ddeb7f981e.png

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      148674
    • Total Posts
      644490
×
×
  • Create New...