Skip to content
Public Ticket #18501

Child Theme

Conversation thread

MattMadsen replied

Customer Reply

Im sorry. Thanks 

PenciDesign Supporter replied

Staff Reply

Hi,

I've modified your site again. The problem because you've added a custom code in the wrong place.

Regards,
PenciDesign.


MattMadsen replied

Customer Reply

I did :=)

MattMadsen replied

Customer Reply

I update the theme to 8.10 and put in the code, but its not working

When do u put this in to the code? 

Regards Matt

PenciDesign Supporter replied

Staff Reply

Hi,

This code can't run on the child theme, so you must add this to the parent theme.

Regards,
PenciDesign.


MattMadsen replied

Customer Reply

I just have a question, can I not write it into the child theme? So it's supposed to be there, right?
or should it be in the parenting theme

PenciDesign Supporter replied

Staff Reply

Hi,

I've modified your parent theme to include the mewe & gab share icon, so after updating the Soledad theme to the latest version, you must add this code again by going to Appearance → Theme Editor: Select theme to edit: Soledad, navigate to functions.php then find (line 3872):

if( $output ){
    if( 'single' == $pos ){
        echo '<div class="list-posts-share">';
    }
    echo $output;
    if( 'single' == $pos ){
        echo '</div>';
    }
}

Add immediately before this code:

$mewe_link = 'https://mewe.com/share?link=' . rawurlencode(get_permalink());
$output .= '<a class="post-share-item post-share-mewe" aria-label="Share on MeWe" target="_blank" '. penci_reltag_social_icons() .' href="' . $mewe_link  . '">' . penci_icon_by_ver( 'penciicon-mewe', '', true ) . '<span class="dt-share">' . esc_html__( 'MeWe', 'soledad' ) . '</span></a>'; $gab_link = 'https://gab.com/compose?url=' . rawurlencode(get_permalink()). '&text=' . rawurlencode( penci_get_the_title() );
$output .= '<a class="post-share-item post-share-gab" aria-label="Share on GAB" target="_blank" '. penci_reltag_social_icons() .' href="' . $gab_link . '">' . penci_icon_by_ver( 'penciicon-gab', '', true ) . '<span class="dt-share">' . esc_html__( 'GAB', 'soledad' ) . '</span></a>';

image.png

Regards,
PenciDesign.

MattMadsen replied

Customer Reply

Ty 
I can update the theme now right?

PenciDesign replied

Staff Reply

Hi,

Yes, you can. But, please do follow steps to move all customization data from parent theme to child theme:

1/ Install & activate plugin Customizer Export/Import

2/ Keep activate parent theme > go to Appearance > Customize > Export/Import > and export the customization data - you will got a .dat file.

3/ Install & activate the child theme.

4/ Go to Customize > Export/Import > and import the .dat file you got on step 2.

Best Regards,

PenciDesign

MattMadsen started the conversation

Conversation Start

Can i install and use child theme now, after a month? 
Will it mess up my site?
Will the gab and Mewe share go away? (You edit theme) 
Regards Matt

Want to join this conversation or access attachments? Sign in first.