Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #2569891
Style 1 insert code
Closed

Comments

  • elguja started the conversation

    Hello, in the theme Style 1, in the end of post description I want to add the following code: 

    <?php echo do_shortcode('[Sassy_Social_Share]'); ?>

    Could you please tell me in which file I should make correction and in which line?

    I want this code to be seen only in Style 1.

  •  2,699
    PenciDesign replied

    Hi,

    You can add shortcode ( no need <?php code - just use shortcode below ):

    [Sassy_Social_Share]
    

    to Customize > Single Post Options > Add Google Adsense/Custom HTML code in the end of content posts

    This option works with shortcodes alsosmile.png


    Best Regards,

    PenciDesign

  • elguja replied

    I know but share buttons is on style 10 too.

    i wont share buttons to be only on style 1.

  •  2,699
    PenciDesign replied

    Hi,

    The php code:

    <?php echo do_shortcode('[Sassy_Social_Share]'); ?>
    

    will be render the same with shortcode:

    [Sassy_Social_Share]
    

    so, if you want to change the style of share button there. Let's check option attr from your shortcodes. It's not issue related with added php code or use shortcodesmile.png


    Best Regards,

    PenciDesign

  • elguja replied

    I just want to insert this code in the place which is pointed in my screenshot.

    Only in Style 1




  •  2,699
    PenciDesign replied

    Hi,

    Ok, if so, please put your php code like on this image:

    http://prntscr.com/uznq7d


    Best Regards,

    PenciDesign

  • elguja replied

    Thank you very much for your help. Everything is ok. Sorry for disturbing you. <3



  • elguja replied

    I want to do the same on Style 8 and where shall I insert the code? Thank you.


  •  2,699
    PenciDesign replied

    Hi,

    If so, please put the code like on this image: https://prnt.sc/v8q3u0


    Best Regards,

    PenciDesign

  • elguja replied

    Thank you. God bless you ^_^

  • elguja replied

    I apologize, as I have seen it now, this code is shown in Style 10 too and I just want it to be shown in Style 8.


  •  2,699
    PenciDesign replied

    Hi,

    Please try change the code you've put to:

    <?php
    $single_style = penci_get_single_style();
    if( $single_style == 'style-8' ): ?>
    PUT YOUR CODE HERE
    <?php endif; ?>

    Note:

    Change the text "PUT YOUR CODE HERE" to the code you want to put there.


    Best Regards,

    PenciDesign

  • elguja replied

    Thanks ^_^