This website uses cookies to remember you and improve your experience. For more info see our Privacy Policy.

Mobile Menu

  • Menu
  • Skip to right header navigation
  • Skip to main content

Stormhill Media

Custom websites for every type of business

Header Right

  • About
  • Websites
    • Business Websites
    • Author Websites
  • SEO
  • Portfolio
  • Services & Pricing
    • Author Website Packages
    • Website Hosting
    • Page Speed Optimization
    • SEO
  • Plugins
    • MyBookTable
    • MyBookProgress
    • MySpeakingEvents
    • Plugin Support
  • Contact
  • Hire Us

Template Override Examples

Home » Developer Resources » Template Override Examples

Override Archive Title
You can insert the following snippet into your theme’s functions.php file to remove the taxonomy indicators that show up before the term title on the MyBookTable taxonomy archive page. The following example removes the “Genre:” indicator on genre archive pages. You can make this work for any of MyBookTable’s taxonomies by replacing ‘mbt_genre’ with the appropriate taxonomy slug (Authors: ‘mbt_author’, Series: ‘mbt_series’, Tags: ‘mbt_tag’).
function mytheme_override_archive_title($output) {
if(is_tax(‘mbt_genre’)) {
$output = get_queried_object()->name;
}
return $output;
}
add_filter(‘mbt_get_book_archive_title’, ‘mytheme_override_archive_title’);

« Previous
Next »

Site Footer

Quick Links:

  • Contact Us
  • Pricing & Services
  • Sitemap
  • Terms/Conditions
  • Privacy Policy
  • Business Websites
  • Author Websites
  • SEO Services
(903) 213-5266‬

Copyright © 2023 · Stormhill Media All Rights Reserved.
Website by Stormhill Media
Log in