Joao Tostes

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
in reply to: Category and Package URL issues #62428

Joao Tostes
Member

Hello Razia, thank you so much.

I’m thinking to use another way, but I don’t know how to identify that it’s a download page (from wpdm).
The idea is simple. I want to see if it’s a download page, if so, I’ll change the breadcrumb. If not, it remains the same.

My single.php has it inside:

                <div class="pagetitle">
                    <?php 
                        $breadcrumbs=get_post_meta(get_the_ID(),'vibe_breadcrumbs',true);
                        if(!isset($breadcrumbs) || !$breadcrumbs || vibe_validate($breadcrumbs)){
                            vibe_breadcrumbs();
                        }   
                    ?>
                    <h1><?php the_title(); ?></h1>
                    <?php the_sub_title(); ?>
                </div>

So, if I have a way to identify that this one is a page with downloads, from wpdm, may I change the code to fit my needs. If it is a different category, I have the way to use something like this:

if(!isset($breadcrumbs) || !$breadcrumbs || vibe_validate($breadcrumbs)) && ( !is_category( 'download' ) ){
                            vibe_breadcrumbs();

For example, if I want to change the thumbnail for a featured image, I may use something like this:

if( has_post_thumbnail() ) {
    the_post_thumbnail();

// Default image for Technology category
} elseif ( is_category( 'technology' ) ) {
    echo '<img src="' .  get_bloginfo('template_directory') . '/images/default_technology_post_thumb.jpg" />';

// Default image for Gadgets category
} elseif ( is_category( 'gadgets' ) ) {
    echo '<img src="' .  get_bloginfo('template_directory') . '/images/default_gadgets_post_thumb.jpg" />';

// Default image for all others
} else {
    echo '<img src="' .  get_bloginfo('template_directory') . '/images/default_post_thumb.jpg" />';
}

In any case, how to identify that it’s a wpdm page to create a code to solve my problem?

Thank you so much.

in reply to: Category and Package URL issues #62418

Joao Tostes
Member

Thank you.

So, if I want to disable the breadcrumbs only for the wpdm, is there some way? I know the CSS code to my theme not to show, but it’s going to change my entire site, and I want to change just inside the wpdm.

.breadcrumbs{
display:none;
}

This is the code, so, just for wpdm, do you have some idea? Thanks!

in reply to: Category and Package URL issues #62396

Joao Tostes
Member

Thank you for the information, Shafayet.

When you say I need to customize the theme, do you mean the wpdm theme or my main wp theme?
If you mean the wpdm one, can you help me how to start doing that?

Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)