Social network icons on essential theme?

Social network icons on essential theme?

av Renato Bravo Acuña -
Antal svar: 6

Hello, well I am a beginner in moodle but I have some knowledge acerca websites, I am Working with moodle and essential theme but I ran into a little problem when trying to change the Images that Appear in social networks.

These Images

Is it possible to put another picture on social networks?

I'll be very grateful for your reply and thank you.

Greetings.-

Medeltalet av utvärderingarna: -
Som svar till Renato Bravo Acuña

Re: Social network icons on essential theme?

av Richard Oelmann -
Bild av Core developers Bild av Plugin developers Bild av Testers

I believe this is using an icon from fontawesome, so you would probably have to use either another fontawesome icon, or change the line in the code that calls the icon and replace it with an image

e.g.

                <li><a href="<?php echo $hastwitter; ?>" class="twitter"><i class="icon-twitter-sign"></i><?php echo $OUTPUT->pix_url('social/twitter', 'theme')?></a></li>

where there is a twitter image in a social folder in pix in your theme eg. mythemename/pix/social/twitter.png.

You may also need to do some css work to make the images fit in place of the font-icons.

Medeltalet av utvärderingarna: -
Som svar till Richard Oelmann

Re: Social network icons on essential theme?

av Usman Asar -
Bild av Plugin developers Bild av Testers

Richard, is there anyway these links can be opened in a new window? I have tried using target="_blank" in same text box where you give URL for social networks, but it didnt worked.

Medeltalet av utvärderingarna: -
Som svar till Usman Asar

Re: Social network icons on essential theme?

av Kees Koopman -

Hi Usman,

Did you get already an answer? Ik have the same question.

 

Medeltalet av utvärderingarna: -
Som svar till Kees Koopman

Re: Social network icons on essential theme?

av Mary Evans -

Hi,

To make any changes to the theme you would need to have access to the the Essential layout files.

The file can be found in ...

essential / layout / includes / header.php

You can then find the variousl links and add the code in the section that looks similar to this...

the light coloured text is what is there already you just need to add the section I have highlighted in green...

href='<?php echo $hastwitter; ?>'" target="_blank" class="socialicon twitter">

You need to do this to each of the Social Media links.

HTH

Mary

Medeltalet av utvärderingarna: -
Som svar till Mary Evans

Re: Social network icons on essential theme?

av Daniel A. Rodriguez -
In the latest version that line doesn't exist anymore so, if someone can give me a hint about achieving that goal would be much appreciated.
Bilaga header.php-2.7.7.jpg
Medeltalet av utvärderingarna: -