MJPMJPMJP
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [ProfitMag] Remove shortcode from sidebarLooks like you are using some kind of external widget to show post of a certain featured category. Am I right?
Forum: Themes and Templates
In reply to: [ProfitMag] Remove Latest PostThe width of what? Do you mean the red part with Latest Post in it or the part where the title of the post is in? And aren’t those already width enough?
Search in the file profitmag-functions.php for // Home page slider
In the function profitmag_slider_fu() change the following line in the if and in the else section from:
<div class="slide-date"> <i class="fa fa-calendar"></i><?php echo get_the_date( 'F d, Y') ; ?> </div>
to
<div class="slide-date"> <i class="fa fa-calendar"></i> YOUR TEXT </div>
Forum: Themes and Templates
In reply to: [ProfitMag] Remove shortcode from sidebarWhich shortcode do you mean?
Forum: Themes and Templates
In reply to: [ProfitMag] Make category Title clickableAnd of course you have to do the same for Featured Block Two, Three etc. if you want those category titles also to be clickable.
Forum: Themes and Templates
In reply to: [ProfitMag] Remove Latest PostIn the file header.php remove the following lines:
<div class="header-latest-posts f-left"> <ul id="js-latest" class="js-hidden"> <?php foreach( $recent_posts as $recent ): ?> <li><a href="<?php echo get_permalink( $recent["ID"] ); ?>" title="<?php echo esc_attr( $recent['post_title'] ); ?>"><?php echo $recent['post_title']; ?></a></li> <?php endforeach; ?> </ul> </div> <!-- .header-latest-posts -->
Forum: Themes and Templates
In reply to: [ProfitMag] Make category Title clickableIn the file front-page.php find this line in section <!– Featured Block One –>:
<h2 class="block-title"><span class="bordertitle-red"></span><?php echo $cat_name; ?></h2>
and change it to:
<?php // Get the ID of a given category $category_id = get_cat_ID( $cat_name ); // Get the URL of this category $category_link = get_category_link( $category_id ); ?> <a href="<?php echo esc_url( $category_link ); ?>" title="<?php echo $cat_name; ?>"><h2 class="block-title"><span class="bordertitle-red"></span><?php echo $cat_name; ?></h2></a>
Forum: Themes and Templates
In reply to: [ProfitMag] Cant`t change die number of "related posts"In the file profitmag-functions.php search for the function profitmag_related_post and change the 5 in the number you want.
`/**
* Show related posts
*/
function profitmag_related_post( $post_id ) {
$categories = get_the_category( $post_id );
if( $categories ) {
$category_ids = array();
foreach( $categories as $category ) {
$category_ids[] = $category->term_id;
}
$args = array(
‘category__in’ => $category_ids,
‘post__not_in’ => array( $post_id ),
‘posts_per_page’ => 5,
);Forum: Themes and Templates
In reply to: [ProfitMag] Make slider image clickableSearch in the file profitmag-functions.php for // Home page slider
In the function profitmag_slider_fu() change the following line in the if part and also in the else part from:<img src="<?php echo $image_url[0]; ?>" />
in to:
<a href="<?php the_permalink(); ?>"><img src="<?php echo $image_url[0]; ?>" /></a>