Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › Change page title
Tagged: page title
- This topic has 17 replies, 4 voices, and was last updated 9 years ago by Anshuman Sahu.
-
AuthorPosts
-
November 9, 2015 at 10:05 am #7737ste_yeuSpectatorHello, I followed these steps (link: http://support.vibethemes.com/support/solutions/articles/1000165336-change-the-page-title-of-the-course-directory) to change the title of the page "Course Diurectory", but it doesn't work... What did I wrong??? I inserted < div class="container"></div>
add_filter(
'init'
,
array
(
$this
,
'yoast_seo_title_fix'
),20);
intopublic function __construct(){
and< div class="line number1 index0 alt2"> < div class="container">function
yoast_seo_title_fix() {
if
(
class_exists
(WPSEO_Frontend)){
add_filter(
'wp_title'
,
array
( WPSEO_Frontend::get_instance(),
'title'
), 25, 3 );
}
</div> </div>}
intofunction wplms_define_constants(){
Thank you in advance!November 9, 2015 at 10:23 am #7744ste_yeuSpectatorEDIT Hello, I followed your official guide to change the title of the page "Course Diurectory", but it doesn't work... What did I wrong??? I inserted add_filter( 'init',array($this,'yoast_seo_title_fix'),20); into public function __construct(){ and functionyoast_seo_title_fix() { if(class_exists(WPSEO_Frontend)){ add_filter( 'wp_title', array( WPSEO_Frontend::get_instance(), 'title'), 25, 3 ); } } into function wplms_define_constants(){ Thank you in advance!November 10, 2015 at 10:12 am #7967Anshuman SahuKeymasterYes the tip is not working as of now in wplms ,we are trying to check the issue and will update the tip soon .November 10, 2015 at 10:56 am #7981ste_yeuSpectatorOk, thank you!November 11, 2015 at 8:47 am #8159sandyMemberOk, Thanks for pointing out. While we check the issue, please confirm the following : a. You have WordPRess SEO plugin (by Yoast) installed. b. You've added a new Title string in Yoast SEO metabox in the page which is used for course directory.November 11, 2015 at 11:24 am #8181ste_yeuSpectatora. You have WordPRess SEO plugin (by Yoast) installed. b. You've added a new Title string in Yoast SEO metabox in the page which is used for course directory.
a. Yes. b. Yes, but it's strange, it shows the title of a specific course page. I tried to change this title in metabox in course directory page and in the specific course page, bu it remains the same...November 14, 2015 at 12:02 pm #8653Anshuman SahuKeymasterYes the tip seems not be working as of now for the. This is an issue with ,we are trying to fix this issue and will be fixed in the upcoming update of the vbie course module and vibe custom types plugin .November 14, 2015 at 1:05 pm #8672MrVibeKeymasterThis still remains a pending bug. Quick fix : Try creating a new page and connect this with WP Admin - Settings - BuddyPress - CourseNovember 29, 2015 at 12:30 am #11235ste_yeuSpectatorQuick fix : Try creating a new page and connect this with WP Admin - Settings - BuddyPress - Course
I updated to 26th Nov'15 release and tried this trick, but it doesn't work. Do you think it could be fixed with another SEO plugin?November 30, 2015 at 11:51 am #11382Anshuman SahuKeymasterThis trick worked a our site . Please remove the custom code for the fix and also try deactivating the seo plugin and then create a new all courses page and assign this in buddypress settings .November 30, 2015 at 2:23 pm #11449ste_yeuSpectatorTried, nothing. :(December 1, 2015 at 12:23 pm #11650Anshuman SahuKeymasterWel this is na issue we are facing ,but u created a new all courses page and assign it as the course directory and it solved the issue . Can you share your admin credentials and site url to check this out . Ps:mark reply as private while sharing info . Make sure that your theme asn all plugins are updated to latest versions . Latest Versions WPLMS v 1.9.9.1 Vibe Course Module v 1.9.9.3 Vibe CustomTypes v 1.9.9.3 Vibe Shortcodes v 1.9.9.1 WPLMS Dashboard v 1.9.9.1 WPLMS Assignment v 1.9.9.1 WPLMS Front End v 1.9.9.6 WPLMS EventOn v 1.3.1December 2, 2015 at 8:39 am #11783ste_yeuSpectatorHello, thank you for your help! WPLMS EventOn v seems not updated, I tried to update it... LOGIN: http://www.formazionefutura.com/wp-admin/ User: formazionefutura Password: K%gO2ipywzi)fsPjkYDecember 2, 2015 at 1:44 pm #11877Anshuman SahuKeymasterPlease remove all of the previous codes and add this code in your wplms-customizer.php file in wplms customizer plugin : function wpls_course_directory_title($title){ global $bp; if ($bp->current_component == 'course'){ if(is_page()){ return 'Course Directory'; } } return $title; } add_filter('wpseo_title','wpls_course_directory_title',10);December 4, 2015 at 11:19 am #12195ste_yeuSpectatorfunction wpls_course_directory_title($title){ global $bp; if ($bp->current_component == 'course'){ if(is_page()){ return 'Course Directory'; } } return $title; } add_filter('wpseo_title','wpls_course_directory_title',10);
This code didn't fix the issue. However I resolved with All In One SEO Pack plugin and then by activing it, creating a new all courses page and assigning this in buddypress settings. -
AuthorPosts
- The topic ‘Change page title’ is closed to new replies.