Skip to content
Public Ticket #14453

Style 1 insert code

Conversation thread

elguja replied

Customer Reply

Thanks ^_^

PenciDesign replied

Staff Reply

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

Customer Reply

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.

elguja replied

Customer Reply

Thank you. God bless you ^_^

elguja replied

Customer Reply

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

elguja replied

Customer Reply

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

elguja replied

Customer Reply

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

Only in Style 1

PenciDesign replied

Staff Reply

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

Customer Reply

I know but share buttons is on style 10 too.

i wont share buttons to be only on style 1.

PenciDesign replied

Staff Reply

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 started the conversation

Conversation Start

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.

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