• All my products have long titles, so I want to display mini version of them on all archive and widgets. Only on Single Product page I want to display original title.

    I thought of using plugin but its not working and developer isn’t active it seems https://www.ads-software.com/support/plugin/secondary-title/

    I have added custom filed Meta: _secondary_title in all my products but I am still trying to figure out, if anyone can please guide me in right direction?

    • This topic was modified 2 years, 4 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 8 replies - 1 through 8 (of 8 total)
  • Have you created the custom field with add_meta_box()? If yes then you can get it simply with get_post_meta(). I’m assuming that Product is your custom post type.

    Thread Starter Saket Jajodia

    (@dzire2dzine)

    But how will I replace them with all title without editing theme, just from functions.php
    I just want to replace WooCom product titles in archive and widgets & not in Single Product page.

    @dzire2dzine,

    Hi, and thanks for your comment. I’m actually still very much on Secondary Title, but time isn’t letting me at the moment :/ Sorry for that.

    Are you familiar with filter hooks in PHP in WordPress? That’d work in the functions.php and wouldn’t need many lines.

    But before that, I need to know exactly what the supposed outcome should be. I understood you this way: You have “Auto show” on for Secondary Title (on the plugin’s settings page) but would like to disable it on single product pages altogether. Is that correct? If yes, do your product pages have widgets where the secondary title is still supposed to be displayed?

    Sorry, but I need a bit of specific input, otherwise, we talk in circles.

    Hope I can help!

    Thread Starter Saket Jajodia

    (@dzire2dzine)

    Hi @thaikolja

    Thank you for the reply, good to see you.

    If you see the screenshot, my title seems too big and stuffy, so I want to use a clean title for front page, archives page, widgets and such (and maybe add title attribute in HTML to call the main title on hover as well)
    BUT I want to keep the main title as it is in product page and meta tags for SEO.
    2022-07-16_10-36-27

    P.S. Please ignore broken icons, already reported bug (#17644) is fontawsm

    • This reply was modified 2 years, 4 months ago by Saket Jajodia.
    Thread Starter Saket Jajodia

    (@dzire2dzine)

    And I have basic understanding of PHP, I can make small modifications/copy/cut/past job to existing codes, but as of now I can’t write entire line of PHP code. ??

    Can you share the entire website, please?

    Thread Starter Saket Jajodia

    (@dzire2dzine)

    Hi @dzire2dzine,

    Is this still relevant?

    Cheers

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Secondary Title for products’ is closed to new replies.