• Resolved vangelder

    (@vangelder)


    Hi there,

    First of all thanks for such freebie!
    We’re having a small issue with a brand page title – no matter what brand page you go to its showing “Archive” instead of brand name….could please point us to right direction on how we can fix it?

    Here is an example link https://alexsander.ch/brand/lyon-sleaf-fr/
    We’re using “Bridge” theme if that matters.

    Thank you in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor titodevera

    (@titodevera)

    Hi vangelder.

    I think titles are not implemented correctly in your theme. Remember that you can contact theme author directly.

    But… if you don′t mind editing the main functions.php

    Replace this (line 1691 for Bridge 10.1.1):

    
    //is current page some archive page?
    elseif (is_archive()) {
    	$title = __('Archive','qode');
    }
    

    …with:

    
    elseif (is_tax('pwb-brand')) {
    	echo get_queried_object()->name;
    }
    
    //is current page some archive page?
    elseif (is_archive()) {
    	$title = __('Archive','qode');
    }
    

    Thanks

    • This reply was modified 7 years, 8 months ago by titodevera.
    Thread Starter vangelder

    (@vangelder)

    Thank you for the hook, but it didnt work out.
    I replaced the code with yours and the page title still remains as “Archive”.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Replace “Archive” to brand name in title area’ is closed to new replies.