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 #2792304
add specific advert for a specific category
Closed

Comments

  • baxivanos started the conversation

    i do have a sponsor for a specific category and i want only to display his adverts on that specific category and not on all categories how do ido that  ?

    and also i want to remove the duplicated name on category page. i only want the big one and remove the small one ? how do i do that ?

  •  2,492
    PenciDesign replied

    Hi,

    1. Please go to the Post > Categories, click Edit on Category you want to add Ads, scroll down to the bottom and put your Ads code in "Add Google Adsense/Custom HTML Code below this category".

    2. You enter the category name and category description with the same content, so your page displays both. Please go to every category edit/remove.

    HwrNDjB.png

    Best Regards,
    PenciDesign.

  • baxivanos replied

    ok that is great done perfect thanks, but how do i get advertisement in the in feed  when i click on the category. for the specific category. as it is in the news feed ?

  • baxivanos replied

    and also to display a featured slider on the specific category is that also possible ?

  •  2,492
    PenciDesign replied

    Hi,

    1. You should install and use the Advanced Ads plugin: https://wordpress.org/plugins/advanced-ads/

    2. Unfortunately, you can only show Featured Slider on Homepage or show all page, you can't show on a specific category in this version. I'll send a feature request to the theme developer.

    Best Regards,
    PenciDesign.

  • baxivanos replied

    Many thank as i do have sponsores on different categories and need to display their articles on a slider in the spesific category. i'm using ad rotate today. witch works fine, what i'm after is as the slider want to dispaly in the infeed of the category their banners. if i use category, archives it goes on all categories and archives. i want it to be on a spesific category and infeed.

  •  2,492
    PenciDesign replied

    Hi,

    If you want to display a featured slider on the specific category, please follow this instruction:

    1. Install ACF Plugin: https://wordpress.org/plugins/advanced-custom-fields/, then import the attachment file (extract and use .json file).

    2. Go to Appearance > Theme Editor, select Soledad theme, then open file functions.php, go to line 4115, and find:

    $order   = get_theme_mod('featured_slider_order');
    

    Add immediately after this line:

    // custom functions for user
    if (is_category() && function_exists('get_field')) {
        $cat_term = get_queried_object();
        $show_post = get_field('baxivanos_featured_slider_cat',$cat_term);
        if ( $show_post ) {
            $featured_args['cat'] = $cat_term->term_id;
        }
    }
    // end custom functions

    2W6gB7v.png

    3. Continue to select header.php file to edit, and find:

    if( is_home() || get_theme_mod( 'penci_featured_slider_all_page' ) ) {
        get_template_part( 'template-parts/header/feature-slider' );
    }

    Replace with:

    $cat_term = get_queried_object();
    $show_post = get_field('baxivanos_featured_slider_cat',$cat_term);
    if( is_home() || get_theme_mod( 'penci_featured_slider_all_page' ) || $show_post ) {
        get_template_part( 'template-parts/header/feature-slider' );
    }

    RlfdWfL.png

    4. Go to the Category you want to display post, check on Show Featured Slider Posts in this Category

    u14VqQi.png

    Done.

    Best Regards,
    PenciDesign.

  • baxivanos replied

    hi many thanks for below solution. worked perfect.

    i need also to display the infeed in the category different banners for the categories si this possible ? i dlike to have for instance one sposor banner in category 1 and a differet one in category 2 how do i do that ?

    as it is today when i use the infeed in the category it dispalys on all categorys and archives i need more spesific category.

  •  2,492
    PenciDesign replied

    Hi,

    The In-feed Ads Code/HTML for each category needs to modify many theme files, so I'll forward your request to the developer team and consider adding this in the future update.

    Regards,
    PenciDesign.


  • baxivanos replied

    would be fantastic if we could get that, as it is important to many of our customers in different categories. and also to our bussiness.

  •   baxivanos replied privately
  •   PenciDesign replied privately
  •   baxivanos replied privately
  •  2,492
    PenciDesign replied

    Hi,

    I've updated this feature on your site. Now each category has 2 options:

    • Category In-Feed Ads
    • Top Banner Ads Code

    You can put HTML/Shortcode in this area.

    image.png

    Regards,
    PenciDesign.

  • baxivanos replied

    Hi Guys 

    it si now tested and working really well, i have 2 more sites that i would like to implement this, will you implement this feature on next update of the theme ?

    and many thanks for helping, great support


    Andreas

  •  2,492
    PenciDesign replied

    Hi,

    Yes. We'll add this feature in the future release.

    Regards,
    PenciDesign.


  • baxivanos replied

    ok great when vill next release be released ?


    Best 

    Andreas

  •  2,492
    PenciDesign replied

    Hi,

    The next version will be released in the next 2 weeks or earlier. Please keep waiting.

    Regards,
    PenciDesign.


  • baxivanos replied

    an other question is there any paoosability to hav a fixed widget area in the in-feed after 4 posts, 8 posts, 12posts, 16 posts and after that in-feed kicks in ?


    best

    Andreas

  •  2,492
    PenciDesign replied

    Hi,

    Unfortunately, the current version of Soledad doesn't support the feature you request. We'll consider implementing it in the future release.

    Regards,
    PenciDesign.


  • baxivanos replied

    Hi, we have updated to the newest theme from Soledad 8.0.7 where we have installed the child theme also.

    When I have added the code in the description below as you recommended, we have the issue that in every update the slider disappears and we need to add manually again.

    Can you please see into this issue

    Kind regards.



  •  2,492
    PenciDesign replied

    Hi,

    1. The current version of Soledad doesn't add the Category Ads and Slider options. We're currently in the development of this feature.

    2. All the codes I've added to your site are custom customization, so everything will be lost after you've updated to the newest version.

    Regards,
    PenciDesign.