Releated posts in other themes #547
Replies: 4 comments 3 replies
-
Converted this to a discussion. Sure, it's possible.
function bootscore_related_posts() {
function my_custom_related_posts() {
<?php my_custom_related_posts(); ?> That's it. But note that all other templates in this plugin have dependencies to bootScore's functions. If you want to use them in a different theme, those dependencies must be removed: <?php bootscore_category_badge(); ?> <?php if ('post' === get_post_type()) : ?>
<p class="meta small mb-2 text-muted">
<?php
bootscore_date();
bootscore_author();
bootscore_comments();
bootscore_edit();
?>
</p>
<?php endif; ?> <?php bootscore_tags(); ?> Solved? |
Beta Was this translation helpful? Give feedback.
-
Hi, I have another question, i see that the swiper does take the woo template, but it does not inherit the css, so iam guessing that there are difference in the classes. How can i change the classes to the defaul woocommerce ones ? |
Beta Was this translation helpful? Give feedback.
-
Hi, i have realised that i was using the wrong hook, so i have changed it to this - For the /*
*/ // Product Slider Shortcode ob_start(); $options = array( $query = new WP_Query($options);
defined( 'ABSPATH' ) || exit; global $product; // Ensure visibility.
/**
/**
/**
|
Beta Was this translation helpful? Give feedback.
-
I understand now, thank you for your time :) |
Beta Was this translation helpful? Give feedback.
-
Since i am not using your theme, is is possible to change the hook for related posts, to a hook of my choice ?
Beta Was this translation helpful? Give feedback.
All reactions