Skip to content
Public Ticket #709

Banner

Conversation thread

manovfaith replied

Customer Reply

Worked like  a charm. Edited the code through cpanel. Thanks a bunch!

PenciDesign replied

Staff Reply

Hi,

To do that, please do following steps:

1/ Install plugin WPide

2/ Go to admin > WPide > themes > soledad > inc > modules > click to open featured-categories.php file and on line 129, replace this code:

\
<?php echo stripslashes( $cat_ads_code ); ?>

TO:

\
<?php echo do_shortcode( stripslashes( $cat_ads_code ) ); ?>

3/ When you done, go to Posts > Categories > edit your featured categories > put the shortcode to Add Google Adsense Code/Custom HTML below this category

Best Regards,

PenciDesign

PenciDesign replied

Staff Reply

Hi,

Do you mean that you want to put it below the posts on category page?

Best Regards,

PenciDesign

manovfaith replied

Customer Reply

Another question.

Similar thought. I want to place an ad from Ads Pro below the category on the front page. I know this is done through categories, but The result is the same. What & where do I insert some code to fix this?

manovfaith replied

Customer Reply

Worked like a charm. Thanks!

PenciDesign replied

Staff Reply

Hi,

To do that, you need to edit the header.php file in this theme.

Please replace this code to:

\
<?php if( get_theme_mod( 'penci_header_3_adsense' ) ):  echo do_shortcode( get_theme_mod( 'penci_header_3_adsense' ) ); endif; ?>

After that, put your shortcode to Customize > Logo and Header Options > Google adsense code to display in header 3

Note: 

You should replace  all character  "  to  '  on your shortcodes to put it there.

Example:

[shortcode  display="true" /]

replace to:

[shortcode  display='true' /]

Best Regards,

PenciDesign

manovfaith started the conversation

Conversation Start

Love the idea of the banner in the header (3), but am I able to put a shortcode in there instead of Google Adsense code? I am using Ads Pro, but just putting the shortcode in there doesn't work. The plugin offer many options, but I can't get any to work. See link >> http://adspro.scripteo.info/documentation/#display-methods

Any ideas?

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