.template_class h2.entry-title { font-family: somefont; }
in your CSS.
]]>heres the file calling that template
page-home.php
<! DOCTYPE html>
<?php get_header(); ?>
<div class="row">
<?php
$args_cat = array(
'include' => '8,10,9,13'
);
$categories = get_categories($args_cat);
foreach($categories as $category):
$args = array(
'type' => 'post',
'posts_per_page' => 1,
'category__in' => $category->term_id,
'category__not_in' => array( 4 ),
);
$lastBlog = new WP_Query( $args );
if( $lastBlog->have_posts() ):
while( $lastBlog->have_posts() ): $lastBlog->the_post(); ?>
<div class="col-xs-12 col-sm-4">
<?php get_template_part('content','featured'); ?>
</div>
<?php endwhile;
endif;
wp_reset_postdata();
endforeach;
?>
</div>
<div class="row">
<div class="col-xs-12 col-sm-8">
<?php
if( have_posts() ):
while( have_posts() ): the_post(); ?>
<?php get_template_part('content',get_post_format()); ?>
<?php endwhile;
endif;
//PRINT OTHER 2 POSTS NOT THE FIRST ONE
/*
$args = array(
'type' => 'post',
'posts_per_page' => 2,
'offset' => 1,
);
$lastBlog = new WP_Query($args);
if( $lastBlog->have_posts() ):
while( $lastBlog->have_posts() ): $lastBlog->the_post(); ?>
<?php get_template_part('content',get_post_format()); ?>
<?php endwhile;
endif;
wp_reset_postdata();
*/
?>
<!-- <hr> -->
<?php
//PRINT ONLY TUTORIALS
/*
$lastBlog = new WP_Query('type=post&posts_per_page=-1&category_name=midday-atrocity');
if( $lastBlog->have_posts() ):
while( $lastBlog->have_posts() ): $lastBlog->the_post(); ?>
<?php get_template_part('content',get_post_format()); ?>
<?php endwhile;
endif;
wp_reset_postdata();
*/
?>
</div>
<div class="col-xs-12 col-sm-4">
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer(); ?>
</html>
yeah the code doesn’t work in custom css.
also the only thing I can see for body viewing page source is
* html body { margin-top: 46px !important; }
}
</style>
<style type="text/css" id="wp-custom-css">
/*
You can add your own CSS here.
Click the help icon above to learn more.
*/
</style>
<!-- Dojo Digital Hide Title -->
<script type="text/javascript">
jQuery(document).ready(function($){
if( $('.entry-title').length != 0 ) {
$('.entry-title span.dojodigital_toggle_title').parents('.entry-title:first').hide();
} else {
$('h1 span.dojodigital_toggle_title').parents('h1:first').hide();
$('h2 span.dojodigital_toggle_title').parents('h2:first').hide();
}
});
</script>
<noscript><style type="text/css"> .entry-title { display:none !important; }</style></noscript>
<!-- END Dojo Digital Hide Title -->
</head>
<body class="home page-template-default page page-id-2 logged-in admin-bar no-customize-support custom-background wp-custom-logo crazyjerks-class my_class">
]]>
<?php the_category(); ?>
adding
<?php the_title( sprintf('<font face="impact"><h2 class="entry-title"><a href="%s">', esc_url( get_permalink() ) ),'</a></h2></font>' ); ?>
however it didn’t work one bit for cat entry titles haha
]]><font face="impact"><?php the_category(); ?></font>
is that a good way of doing it steve? anything wrong with that way?
]]><body class="home page-template-default page page-id-2 logged-in admin-bar no-customize-support custom-background wp-custom-logo Juicyjuice-class my_class">
here it is.
for some reason I cant comprehend what you said.
how do I apply this to
this?
.template_class h2.entry-title { font-family: somefont; }
I get I can replace somefont to whatever font. ami suppose to replace .template_class
with ??
.page-template-default
, and the specific page class is .page-id-2
.
so
.page-id-2 h2.entry-title { font-family: somefont; }