• Hello,

    First of all, congrats for an awesome theme.

    I see the social links (and icons) for the employees are limited to four (facebook, twitter, google+ and Linkedin). Is it possible to add other social icons (like Instagram) or any other icons that work as links?

    Thanks!

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter GuillemClua

    (@guillemclua)

    Hello again,

    Regarding social icons, is it possible to add other icons in the Social Widget also?

    Thanks!

    Hi,

    please visit this URL https://fortawesome.github.io/Font-Awesome/cheatsheet/ , try to get the icon name and put the icon name in the provided text field

    Thread Starter GuillemClua

    (@guillemclua)

    Hi,

    I tried to do that using the CSS class, but it won’t work.

    Is this for employees pagebuilder widget? if so, you have to create new custom post type and modify the existing php code, its better if you modify the php files using child theme. Let me know if you want to work on this, hope I can give you the instruction.

    Thread Starter GuillemClua

    (@guillemclua)

    Yes, I’d like to use this for the Employees PB widget and also for the Social PB widget.

    I’m not a code expert, so I don’t know if I’ll be able to modify the theme. Is it hard?

    Thread Starter GuillemClua

    (@guillemclua)

    Hi, I have an additional problem. I tried to use the employees images to add a custom link, and it won’t work. Any advice?

    Hi,

    Here is to add instagram field to the theme, first you have create new Custom Fields from Types > Custom Types > Employee Info.
    1. Add URL field https://prntscr.com/a2l2dn then enter “instagram” for the name and slug field
    2. Save the go to add new employee item and you should new Instagram field added https://prntscr.com/a2l38z
    3. Create a child theme
    4. Duplicate “widgets/fp-employees.php” from parent theme to the child theme https://prntscr.com/a2l4e8
    5. Open and edit file fp-employees.php in your child theme
    6. https://prntscr.com/a2l4u0 add this line:
    $instagram = get_post_meta( get_the_ID(), 'wpcf-instagram', true );

    under this line:
    $linkedin = get_post_meta( get_the_ID(), 'wpcf-linkedin', true );

    7. https://prntscr.com/a2l783 change this line:
    <?php if ( ($facebook != '') || ($twitter != '') || ($google != '') || ($linkedin != '') ) : ?>

    to:
    <?php if ( ($facebook != '') || ($twitter != '') || ($google != '') || ($linkedin != '') || ($linkedin != '') ) : ?>

    8. https://prntscr.com/a2l52y add this line:

    <?php if ($instagram != '') : ?>
    <a href="<?php echo esc_url($instagram); ?>" target="_blank"><i class="fa fa-instagram"></i></a>
    <?php endif; ?>

    under this line:

    <?php if ($linkedin != '') : ?>
    <a href="<?php echo esc_url($linkedin); ?>" target="_blank"><i class="fa fa-linkedin"></i></a>
    <?php endif; ?>

    9. Open functions.php in your child theme and add this line:

    if ( function_exists('siteorigin_panels_activate') ) {
    require_once get_template_directory() . "-child/widgets/fp-employees.php";
    }

    10. Activate your child theme first, and you will get an error in your site.
    10. to fix the error, open functions.php in your parent theme and change this line:
    require get_template_directory() . "/widgets/fp-employees.php";

    to:
    // require get_template_directory() . "/widgets/fp-employees.php";

    And about the custom link, please follow this thread https://athemes.com/forums/topic/link-from-a-employee-in-moesia/

    Let me know how its worked.

    Regards,
    Awan

    Please noted,

    Don’t edit all those files from wordpress editor. Its recommended if you are working using FTP or Cpanel

    Thread Starter GuillemClua

    (@guillemclua)

    Hi, thanks for the trouble.

    I followed your instructions until step 9. Where should I paste that line of code? Just anywhere?

    Also in step 10, aren’t the two lines of code the same?

    Thanks!

    Thread Starter GuillemClua

    (@guillemclua)

    OK forget my last message. I did it and the Instagram icon seems to work fine. Thanks!

    I seem to have lost some configuration (some front cover images issues but they aren’t important at the moment).

    I’ll try the custom link issue now. I’ll let you know if there is any additional problem.

    Thank you so much.

    Thread Starter GuillemClua

    (@guillemclua)

    OK I found my first problems!

    1. The instagram icon appears and works smoothly in my front page. As you can see, I also added other links (mail and info) in some employees info following your instructions:

    https://barcelonaplaywrights.com/ca/front-page/

    But the new icons don’t show in this other page:

    https://barcelonaplaywrights.com/ca/dramaturgs/

    2. All the sections seem to have disappeared in the Spanish and English versions of the site (I’m using Polylang).

    https://barcelonaplaywrights.com/es/front-page-2/

    https://barcelonaplaywrights.com/en/front-page-en/

    Hi,

    This page https://barcelonaplaywrights.com/ca/dramaturgs/ is using different file, its using page_employees.php. You can try to follow the instructions in above for these file. But I think point 9-10 is not needed.

    Thread Starter GuillemClua

    (@guillemclua)

    Perfect. It works! Thanks!

    As for my second problem? The sections in the Spanish and English versions have disappeared… Is Polylang interfering with my child theme somehow?

    I think its because when you switch the language, it was redirected to another page.

    catala: https://barcelonaplaywrights.com/ca/front-page
    esp and engl: https://barcelonaplaywrights.com/es/front-page-2

    Can you re-check the Polylang configuration?

    Thread Starter GuillemClua

    (@guillemclua)

    I reset the Polylang configuration, and even created new front pages for ES and EN, but the sections Employees, Testimonials, Projects and even blog entries don’t show up, despite the fact that the widgets are included the page. Strangely enough, the Blockquote, Skills and Social widgets are working… Any clue?

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Additional icons for employees?’ is closed to new replies.