Next, I have 4 posts in a post type services.
Brides, Day Spa, Aesthetic Medicine and Salon
<div class="service-content <?php if( $post_title == 'Noivas' ) echo "qwp-content"; ?>">
<?php var_dump($post_title); ?>
<?php the_content(); ?>
</div><!-- /.qwp-content -->
CSS:
.qwp-content {
font-size: 1.444rem;
text-align: center;
p:nth-child(odd) {
color: #000;
padding: 7px;
background: #C5C2B3;
}
}
.service-content {
font-size: 1.444rem;
}
It was doing so, but not so much of logic and tals.
Basically, what I want is that when the person accesses Brides, it does not take the .qwp-content class and just get .service-content