Jump to content
Sign in to follow this  
sgendry

How to disable pagelines title & metatags without hacking includes/library.templates.php?

Recommended Posts

sgendry

Long story short: I have a custom php directory that I have embeded inside pagelines framework using hooks in a dedicated wordpress installation (I am using All in one SEO plugin in my main site but could not disable that plugin on the specific pages of my directory where I want to use dynamically generated titles and metatags). So: I have found the pagelines code for the in includes/library.templates.php and need to disable it so that it doesn't duplicate with my custom one. Since I am not using any SEO plugin that pagelines recognizes and I'd rather not hack the code, how do I get it to implement $title = trim( wp_title( '', false ) ); without manually deleting the code that's above?

Share this post


Link to post
Share on other sites
Rob
First, it's inadvisable to edit core files and they will be overwritten when an update comes along. I'm afraid I'm unclear which titles you're trying to hide. Can you take a snapshot and link it here so that we can see what you're trying to hide? Usually we can recommend a CSS solution to hide things, quite easily.

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
sgendry
The link to the page I was referring to is included in my initial post. http://www.laughteryogaamerica.com/maps/profile/?center=3 See the source: ... [THIS IS THE PAGELINES TITLE TAG I WANT TO HIDE/REMOVE]Profile... [THIS IS MY OWN CUSTOM TITLE TAG]this is a test Ideally my title tag would display at the very top of the page, where the pagelines title tag currently is.

Share this post


Link to post
Share on other sites
Simon
PlatformPro and PageLines Framework both recognize wp-seo and AIOSEO and let them take over, then they pass the title through a filter: [code] // Print the title. echo apply_filters( 'pagelines_meta_title', $title ); [/code] so if you use this filter, you can fully control the title.

Share this post


Link to post
Share on other sites
sgendry
Your help is much appreciated. Is this a code I need to paste in functions.php ? If so it doesn't work. For reference I am not using any SEO plugin at all.

Share this post


Link to post
Share on other sites
sgendry
(I am not a programmer myself, so apologies if this is a strange question) Am simply the go-between, trying to pre-digest his work as much as possible.

Share this post


Link to post
Share on other sites
catrina
Yes, that code above is supposed to go in functions.php, but you need to make sure you're editing the file in PlatformBase, the child theme.

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
sgendry
I have updated /wp-content/themes/pagelines-template-theme/functions.php and added // Print the title. echo apply_filters( 'pagelines_meta_title', $title ); but that doesn't do anything. The pagelines title tag still appears. See http://www.laughteryogaamerica.com/maps/profile/?center=3 Also and to clarify: it is not necessary to have the pagelines customize plugin if you have the PlatformBase child theme, right?

Share this post


Link to post
Share on other sites
catrina
I noticed that your directory says "pagelines-template-theme" rather than the name of the theme that's in the file name when the theme is downloaded. Did you change this? It's not necessary to have the PageLines Customize plugin if you're using the base theme on PageLines Framework. PageLines Customize plugin is only available for PageLines Framework, not PlatformPro. Also, I'm going to move this topic to the PageLines Framework category since it's in the PlatformPro category.

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
sgendry
? Do as you feel is relevant. I am using Pagelines Framework. I downloaded the theme from the store and did not rename anything. What name do you want me to give it? Also, I am unfortunately none the wiser because the solution you proposed does not work. Hacking the theme is easy and I can get that to work. How to get pagelines to turn off its own tag remains a mystery. Your thoughts? </div> <div class='ipsItemControls'> <div data-controller='core.front.core.reaction' class='ipsItemControls_right ipsClearfix '> <div class='ipsReact ipsPos_right'> <div class='ipsReact_blurb ipsHide' data-role='reactionBlurb'> </div> </div> </div> <ul class='ipsComment_controls ipsClearfix ipsItemControls_left' data-role="commentControls"> <li class='ipsHide' data-role='commentLoading'> <span class='ipsLoading ipsLoading_tiny ipsLoading_noAnim'></span> </li> </ul> </div> </div> <div class='ipsMenu ipsMenu_wide ipsHide cPostShareMenu' id='elSharePost_114243_menu'> <div class='ipsPad'> <h4 class='ipsType_sectionHead'>Share this post</h4> <hr class='ipsHr'> <h5 class='ipsType_normal ipsType_reset'>Link to post</h5> <input type='text' value='https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/?do=findComment&comment=114243' class='ipsField_fullWidth'> <h5 class='ipsType_normal ipsType_reset ipsSpacer_top'>Share on other sites</h5> <ul class='ipsList_inline ipsList_noSpacing ipsClearfix' data-controller="core.front.core.sharelink"> <li> <a href="http://twitter.com/share?text=How%20to%20disable%20pagelines%20title%20%26%20metatags%20without%20hacking%20includes%2Flibrary.templates.php%3F&url=https%3A%2F%2Fforum.pagelines.com%2Ftopic%2F19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp%2F%3Fdo%3DfindComment%26comment%3D114243" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title='Share on Twitter' data-ipsTooltip rel='noopener'> <i class="fa fa-twitter"></i> </a></li> <li> <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fforum.pagelines.com%2Ftopic%2F19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp%2F%3Fdo%3DfindComment%26comment%3D114243" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title='Share on Facebook' data-ipsTooltip rel='noopener'> <i class="fa fa-facebook"></i> </a></li> <li> <a href="https://plus.google.com/share?url=https%3A%2F%2Fforum.pagelines.com%2Ftopic%2F19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp%2F%3Fdo%3DfindComment%26comment%3D114243" class="cShareLink cShareLink_google" target="_blank" data-role="shareLink" title='Share on Google+' data-ipsTooltip rel='noopener'> <i class="fa fa-google-plus"></i> </a></li> <li> <a href="http://pinterest.com/pin/create/button/?url=https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/?do=findComment%26comment=114243&media=https://forum-pagelines.netdna-ssl.com/uploads/monthly_2017_01/default-touch-icon.png.cdc50bc95f89a5ab303272ce37a14c6d.png" class="cShareLink cShareLink_pinterest" target="_blank" data-role="shareLink" title='Share on Pinterest' data-ipsTooltip rel='noopener'> <i class="fa fa-pinterest"></i> </a></li> </ul> </div> </div> </div> </div> </article> <a id="comment-114252"></a> <article id="elComment_114252" class="cPost ipsBox ipsComment ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone "> <div class="cAuthorPane cAuthorPane_mobile ipsResponsive_showPhone ipsResponsive_block"> <h3 class="ipsType_sectionHead cAuthorPane_author ipsResponsive_showPhone ipsResponsive_inlineBlock ipsType_break ipsType_blendLinks ipsTruncate ipsTruncate_line"> <span style='color:#FF9400'>Simon</span> <span class="ipsResponsive_showPhone ipsResponsive_inline">   <span title="Member's total reputation" data-ipsTooltip class='ipsRepBadge ipsRepBadge_positive'> <i class='fa fa-plus-circle'></i> 248 </span> </span> </h3> <div class="cAuthorPane_photo"> <span class='ipsUserPhoto ipsUserPhoto_large '> <img src='//forum-pagelines.netdna-ssl.com/uploads/monthly_2016_02/PL5.png.a4d11b9942ccb51a4c2db1479774c073.thumb.png.b95c11b9342797b6ee06274c85b1c68d.png' alt='Simon'> </span> </div> </div> <aside class="ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone"><h3 class="ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break"> <strong> <span style='color:#FF9400'>Simon</span></strong> <span class="ipsResponsive_showPhone ipsResponsive_inline">   <span title="Member's total reputation" data-ipsTooltip class='ipsRepBadge ipsRepBadge_positive'> <i class='fa fa-plus-circle'></i> 248 </span> </span> </h3> <ul class="cAuthorPane_info ipsList_reset"> <li class="ipsType_break">Staff</li> <li><span class='ipsPip'></span><span class='ipsPip'></span><span class='ipsPip'></span><span class='ipsPip'></span><span class='ipsPip'></span></li> <li class="cAuthorPane_photo"> <span class='ipsUserPhoto ipsUserPhoto_large '> <img src='//forum-pagelines.netdna-ssl.com/uploads/monthly_2016_02/PL5.png.a4d11b9942ccb51a4c2db1479774c073.thumb.png.b95c11b9342797b6ee06274c85b1c68d.png' alt='Simon'> </span> </li> <li><span style='color:#FF9400'>Administrators</span></li> <li> <span title="Member's total reputation" data-ipsTooltip class='ipsRepBadge ipsRepBadge_positive'> <i class='fa fa-plus-circle'></i> 248 </span> </li> <li class="ipsType_light">2,436 posts</li> <li class='ipsResponsive_hidePhone ipsType_break'> <span class='ft'>Location: </span><span class='fc'>Devon UK</span> </li> </ul></aside><div class="ipsColumn ipsColumn_fluid"> <div id='comment-114252_wrap' data-controller='core.front.core.comment' data-commentApp='forums' data-commentType='forums' data-commentID="114252" data-quoteData='{"userid":1,"username":"Simon","timestamp":1337732030,"contentapp":"forums","contenttype":"forums","contentid":19434,"contentclass":"forums_Topic","contentcommentid":114252}' class='ipsComment_content ipsType_medium ipsFaded_withHover'> <div class='ipsComment_meta ipsType_light'> <div class='ipsPos_right ipsType_light ipsType_reset ipsFaded ipsFaded_more ipsType_blendLinks'> <ul class='ipsList_inline ipsComment_tools'> <li><a href='https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/?do=reportComment&comment=114252' data-ipsDialog data-ipsDialog-remoteSubmit data-ipsDialog-size='medium' data-ipsDialog-flashMessage='Thanks for your report.' data-ipsDialog-title="Report post" data-action='reportComment' title='Report this content' class='ipsFaded ipsFaded_more'><span class='ipsResponsive_showPhone ipsResponsive_inline'><i class='fa fa-flag'></i></span><span class='ipsResponsive_hidePhone ipsResponsive_inline'>Report post</span></a></li> <li><a class='ipsType_blendLinks' href='https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/?do=findComment&comment=114252' data-ipsTooltip title='Share this post' data-ipsMenu data-ipsMenu-closeOnClick='false' id='elSharePost_114252' data-role='shareComment'><i class='fa fa-share-alt'></i></a></li> </ul> </div> <div class='ipsType_reset'> <a href='https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/?do=findComment&comment=114252' class='ipsType_blendLinks'>Posted <time datetime='2012-05-23T00:13:50Z' title='05/23/2012 12:13 AM' data-short='5 yr'>May 23, 2012</time></a> <span class='ipsResponsive_hidePhone'> </span> </div> </div> <div class='cPost_contentWrap ipsPad'> <div data-role='commentContent' class='ipsType_normal ipsType_richText ipsContained' data-controller='core.front.core.lightboxedImages'> Erm, when i posted the filter code, i was showing what filter it uses to generate the title. $title is passed through 'pagelines_meta_title' filters. So if you add a filter to pagelines_meta_title with your title, it will override the main title. Adding echo apply_filters( 'pagelines_meta_title', $title ); to functions.php will not do anything at all other than generating an error as $title is an undefined variable. [code]add_filter( 'pagelines_meta_title', 'change_my_title' ); function change_my_title( $title ) { return 'hello, i am a new title'; }[/code] </div> <div class='ipsItemControls'> <div data-controller='core.front.core.reaction' class='ipsItemControls_right ipsClearfix '> <div class='ipsReact ipsPos_right'> <div class='ipsReact_blurb ipsHide' data-role='reactionBlurb'> </div> </div> </div> <ul class='ipsComment_controls ipsClearfix ipsItemControls_left' data-role="commentControls"> <li class='ipsHide' data-role='commentLoading'> <span class='ipsLoading ipsLoading_tiny ipsLoading_noAnim'></span> </li> </ul> </div> </div> <div class='ipsMenu ipsMenu_wide ipsHide cPostShareMenu' id='elSharePost_114252_menu'> <div class='ipsPad'> <h4 class='ipsType_sectionHead'>Share this post</h4> <hr class='ipsHr'> <h5 class='ipsType_normal ipsType_reset'>Link to post</h5> <input type='text' value='https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/?do=findComment&comment=114252' class='ipsField_fullWidth'> <h5 class='ipsType_normal ipsType_reset ipsSpacer_top'>Share on other sites</h5> <ul class='ipsList_inline ipsList_noSpacing ipsClearfix' data-controller="core.front.core.sharelink"> <li> <a href="http://twitter.com/share?text=How%20to%20disable%20pagelines%20title%20%26%20metatags%20without%20hacking%20includes%2Flibrary.templates.php%3F&url=https%3A%2F%2Fforum.pagelines.com%2Ftopic%2F19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp%2F%3Fdo%3DfindComment%26comment%3D114252" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title='Share on Twitter' data-ipsTooltip rel='noopener'> <i class="fa fa-twitter"></i> </a></li> <li> <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fforum.pagelines.com%2Ftopic%2F19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp%2F%3Fdo%3DfindComment%26comment%3D114252" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title='Share on Facebook' data-ipsTooltip rel='noopener'> <i class="fa fa-facebook"></i> </a></li> <li> <a href="https://plus.google.com/share?url=https%3A%2F%2Fforum.pagelines.com%2Ftopic%2F19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp%2F%3Fdo%3DfindComment%26comment%3D114252" class="cShareLink cShareLink_google" target="_blank" data-role="shareLink" title='Share on Google+' data-ipsTooltip rel='noopener'> <i class="fa fa-google-plus"></i> </a></li> <li> <a href="http://pinterest.com/pin/create/button/?url=https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/?do=findComment%26comment=114252&media=https://forum-pagelines.netdna-ssl.com/uploads/monthly_2017_01/default-touch-icon.png.cdc50bc95f89a5ab303272ce37a14c6d.png" class="cShareLink cShareLink_pinterest" target="_blank" data-role="shareLink" title='Share on Pinterest' data-ipsTooltip rel='noopener'> <i class="fa fa-pinterest"></i> </a></li> </ul> </div> </div> </div> </div> </article> <a id="comment-114253"></a> <article id="elComment_114253" class="cPost ipsBox ipsComment ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone "> <div class="cAuthorPane cAuthorPane_mobile ipsResponsive_showPhone ipsResponsive_block"> <h3 class="ipsType_sectionHead cAuthorPane_author ipsResponsive_showPhone ipsResponsive_inlineBlock ipsType_break ipsType_blendLinks ipsTruncate ipsTruncate_line"> sgendry <span class="ipsResponsive_showPhone ipsResponsive_inline">   <span title="Member's total reputation" data-ipsTooltip class='ipsRepBadge ipsRepBadge_positive'> <i class='fa fa-plus-circle'></i> 1 </span> </span> </h3> <div class="cAuthorPane_photo"> <span class='ipsUserPhoto ipsUserPhoto_large '> <img src='https://secure.gravatar.com/avatar/5a7235d91fef5cdbba4cd3f30dc66b26?d=https://forum-pagelines.netdna-ssl.com/uploads/monthly_2017_06/S.png.a61d38146314325c437d75cb89d251c9.png' alt='sgendry'> </span> </div> </div> <aside class="ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone"><h3 class="ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break"> <strong> sgendry</strong> <span class="ipsResponsive_showPhone ipsResponsive_inline">   <span title="Member's total reputation" data-ipsTooltip class='ipsRepBadge ipsRepBadge_positive'> <i class='fa fa-plus-circle'></i> 1 </span> </span> </h3> <ul class="cAuthorPane_info ipsList_reset"> <li class="ipsType_break">Advanced Member</li> <li><span class='ipsPip'></span><span class='ipsPip'></span><span class='ipsPip'></span></li> <li class="cAuthorPane_photo"> <span class='ipsUserPhoto ipsUserPhoto_large '> <img src='https://secure.gravatar.com/avatar/5a7235d91fef5cdbba4cd3f30dc66b26?d=https://forum-pagelines.netdna-ssl.com/uploads/monthly_2017_06/S.png.a61d38146314325c437d75cb89d251c9.png' alt='sgendry'> </span> </li> <li>Members</li> <li> <span title="Member's total reputation" data-ipsTooltip class='ipsRepBadge ipsRepBadge_positive'> <i class='fa fa-plus-circle'></i> 1 </span> </li> <li class="ipsType_light">78 posts</li> </ul></aside><div class="ipsColumn ipsColumn_fluid"> <div id='comment-114253_wrap' data-controller='core.front.core.comment' data-commentApp='forums' data-commentType='forums' data-commentID="114253" data-quoteData='{"userid":31156,"username":"sgendry","timestamp":1337733365,"contentapp":"forums","contenttype":"forums","contentid":19434,"contentclass":"forums_Topic","contentcommentid":114253}' class='ipsComment_content ipsType_medium ipsFaded_withHover'> <div class='ipsComment_meta ipsType_light'> <div class='ipsPos_right ipsType_light ipsType_reset ipsFaded ipsFaded_more ipsType_blendLinks'> <ul class='ipsList_inline ipsComment_tools'> <li><a href='https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/?do=reportComment&comment=114253' data-ipsDialog data-ipsDialog-remoteSubmit data-ipsDialog-size='medium' data-ipsDialog-flashMessage='Thanks for your report.' data-ipsDialog-title="Report post" data-action='reportComment' title='Report this content' class='ipsFaded ipsFaded_more'><span class='ipsResponsive_showPhone ipsResponsive_inline'><i class='fa fa-flag'></i></span><span class='ipsResponsive_hidePhone ipsResponsive_inline'>Report post</span></a></li> <li><a class='ipsType_blendLinks' href='https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/?do=findComment&comment=114253' data-ipsTooltip title='Share this post' data-ipsMenu data-ipsMenu-closeOnClick='false' id='elSharePost_114253' data-role='shareComment'><i class='fa fa-share-alt'></i></a></li> </ul> </div> <div class='ipsType_reset'> <a href='https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/?do=findComment&comment=114253' class='ipsType_blendLinks'>Posted <time datetime='2012-05-23T00:36:05Z' title='05/23/2012 12:36 AM' data-short='5 yr'>May 23, 2012</time></a> <span class='ipsResponsive_hidePhone'> </span> </div> </div> <div class='cPost_contentWrap ipsPad'> <div data-role='commentContent' class='ipsType_normal ipsType_richText ipsContained' data-controller='core.front.core.lightboxedImages'> Awesome. That did it for me. Thank you. </div> <div class='ipsItemControls'> <div data-controller='core.front.core.reaction' class='ipsItemControls_right ipsClearfix '> <div class='ipsReact ipsPos_right'> <div class='ipsReact_blurb ipsHide' data-role='reactionBlurb'> </div> </div> </div> <ul class='ipsComment_controls ipsClearfix ipsItemControls_left' data-role="commentControls"> <li class='ipsHide' data-role='commentLoading'> <span class='ipsLoading ipsLoading_tiny ipsLoading_noAnim'></span> </li> </ul> </div> </div> <div class='ipsMenu ipsMenu_wide ipsHide cPostShareMenu' id='elSharePost_114253_menu'> <div class='ipsPad'> <h4 class='ipsType_sectionHead'>Share this post</h4> <hr class='ipsHr'> <h5 class='ipsType_normal ipsType_reset'>Link to post</h5> <input type='text' value='https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/?do=findComment&comment=114253' class='ipsField_fullWidth'> <h5 class='ipsType_normal ipsType_reset ipsSpacer_top'>Share on other sites</h5> <ul class='ipsList_inline ipsList_noSpacing ipsClearfix' data-controller="core.front.core.sharelink"> <li> <a href="http://twitter.com/share?text=How%20to%20disable%20pagelines%20title%20%26%20metatags%20without%20hacking%20includes%2Flibrary.templates.php%3F&url=https%3A%2F%2Fforum.pagelines.com%2Ftopic%2F19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp%2F%3Fdo%3DfindComment%26comment%3D114253" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title='Share on Twitter' data-ipsTooltip rel='noopener'> <i class="fa fa-twitter"></i> </a></li> <li> <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fforum.pagelines.com%2Ftopic%2F19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp%2F%3Fdo%3DfindComment%26comment%3D114253" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title='Share on Facebook' data-ipsTooltip rel='noopener'> <i class="fa fa-facebook"></i> </a></li> <li> <a href="https://plus.google.com/share?url=https%3A%2F%2Fforum.pagelines.com%2Ftopic%2F19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp%2F%3Fdo%3DfindComment%26comment%3D114253" class="cShareLink cShareLink_google" target="_blank" data-role="shareLink" title='Share on Google+' data-ipsTooltip rel='noopener'> <i class="fa fa-google-plus"></i> </a></li> <li> <a href="http://pinterest.com/pin/create/button/?url=https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/?do=findComment%26comment=114253&media=https://forum-pagelines.netdna-ssl.com/uploads/monthly_2017_01/default-touch-icon.png.cdc50bc95f89a5ab303272ce37a14c6d.png" class="cShareLink cShareLink_pinterest" target="_blank" data-role="shareLink" title='Share on Pinterest' data-ipsTooltip rel='noopener'> <i class="fa fa-pinterest"></i> </a></li> </ul> </div> </div> </div> </div> </article> <a id="comment-114260"></a> <article id="elComment_114260" class="cPost ipsBox ipsComment ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone "> <div class="cAuthorPane cAuthorPane_mobile ipsResponsive_showPhone ipsResponsive_block"> <h3 class="ipsType_sectionHead cAuthorPane_author ipsResponsive_showPhone ipsResponsive_inlineBlock ipsType_break ipsType_blendLinks ipsTruncate ipsTruncate_line"> sgendry <span class="ipsResponsive_showPhone ipsResponsive_inline">   <span title="Member's total reputation" data-ipsTooltip class='ipsRepBadge ipsRepBadge_positive'> <i class='fa fa-plus-circle'></i> 1 </span> </span> </h3> <div class="cAuthorPane_photo"> <span class='ipsUserPhoto ipsUserPhoto_large '> <img src='https://secure.gravatar.com/avatar/5a7235d91fef5cdbba4cd3f30dc66b26?d=https://forum-pagelines.netdna-ssl.com/uploads/monthly_2017_06/S.png.a61d38146314325c437d75cb89d251c9.png' alt='sgendry'> </span> </div> </div> <aside class="ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone"><h3 class="ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break"> <strong> sgendry</strong> <span class="ipsResponsive_showPhone ipsResponsive_inline">   <span title="Member's total reputation" data-ipsTooltip class='ipsRepBadge ipsRepBadge_positive'> <i class='fa fa-plus-circle'></i> 1 </span> </span> </h3> <ul class="cAuthorPane_info ipsList_reset"> <li class="ipsType_break">Advanced Member</li> <li><span class='ipsPip'></span><span class='ipsPip'></span><span class='ipsPip'></span></li> <li class="cAuthorPane_photo"> <span class='ipsUserPhoto ipsUserPhoto_large '> <img src='https://secure.gravatar.com/avatar/5a7235d91fef5cdbba4cd3f30dc66b26?d=https://forum-pagelines.netdna-ssl.com/uploads/monthly_2017_06/S.png.a61d38146314325c437d75cb89d251c9.png' alt='sgendry'> </span> </li> <li>Members</li> <li> <span title="Member's total reputation" data-ipsTooltip class='ipsRepBadge ipsRepBadge_positive'> <i class='fa fa-plus-circle'></i> 1 </span> </li> <li class="ipsType_light">78 posts</li> </ul></aside><div class="ipsColumn ipsColumn_fluid"> <div id='comment-114260_wrap' data-controller='core.front.core.comment' data-commentApp='forums' data-commentType='forums' data-commentID="114260" data-quoteData='{"userid":31156,"username":"sgendry","timestamp":1337750931,"contentapp":"forums","contenttype":"forums","contentid":19434,"contentclass":"forums_Topic","contentcommentid":114260}' class='ipsComment_content ipsType_medium ipsFaded_withHover'> <div class='ipsComment_meta ipsType_light'> <div class='ipsPos_right ipsType_light ipsType_reset ipsFaded ipsFaded_more ipsType_blendLinks'> <ul class='ipsList_inline ipsComment_tools'> <li><a href='https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/?do=reportComment&comment=114260' data-ipsDialog data-ipsDialog-remoteSubmit data-ipsDialog-size='medium' data-ipsDialog-flashMessage='Thanks for your report.' data-ipsDialog-title="Report post" data-action='reportComment' title='Report this content' class='ipsFaded ipsFaded_more'><span class='ipsResponsive_showPhone ipsResponsive_inline'><i class='fa fa-flag'></i></span><span class='ipsResponsive_hidePhone ipsResponsive_inline'>Report post</span></a></li> <li><a class='ipsType_blendLinks' href='https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/?do=findComment&comment=114260' data-ipsTooltip title='Share this post' data-ipsMenu data-ipsMenu-closeOnClick='false' id='elSharePost_114260' data-role='shareComment'><i class='fa fa-share-alt'></i></a></li> </ul> </div> <div class='ipsType_reset'> <a href='https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/?do=findComment&comment=114260' class='ipsType_blendLinks'>Posted <time datetime='2012-05-23T05:28:51Z' title='05/23/2012 05:28 AM' data-short='5 yr'>May 23, 2012</time></a> <span class='ipsResponsive_hidePhone'> </span> </div> </div> <div class='cPost_contentWrap ipsPad'> <div data-role='commentContent' class='ipsType_normal ipsType_richText ipsContained' data-controller='core.front.core.lightboxedImages'> One more fine-tuning question in case you are willing to answer (your help is most valuable and appreciated!). Here is the essence of what I have used: add_filter( 'pagelines_meta_title', 'change_my_title' ); function change_my_title( $title ) { $page_title = ''; if( is_home() ){ $page_title = 'MY KEYWORDS'; } if( is_page( 17 ) ){ $page_title = 'MY KEYWORDS'; } } This works well for page 17, but not for the home page (which happens to be page 5). With this code the home page displays an empty <title> tag. I have tried if( is_page( 5 ) ){ $page_title = 'MY KEYWORDS'; } but that did not work. What code should I use to have my chosen <title> tag display on the home page? </div> <div class='ipsItemControls'> <div data-controller='core.front.core.reaction' class='ipsItemControls_right ipsClearfix '> <div class='ipsReact ipsPos_right'> <div class='ipsReact_blurb ipsHide' data-role='reactionBlurb'> </div> </div> </div> <ul class='ipsComment_controls ipsClearfix ipsItemControls_left' data-role="commentControls"> <li class='ipsHide' data-role='commentLoading'> <span class='ipsLoading ipsLoading_tiny ipsLoading_noAnim'></span> </li> </ul> </div> </div> <div class='ipsMenu ipsMenu_wide ipsHide cPostShareMenu' id='elSharePost_114260_menu'> <div class='ipsPad'> <h4 class='ipsType_sectionHead'>Share this post</h4> <hr class='ipsHr'> <h5 class='ipsType_normal ipsType_reset'>Link to post</h5> <input type='text' value='https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/?do=findComment&comment=114260' class='ipsField_fullWidth'> <h5 class='ipsType_normal ipsType_reset ipsSpacer_top'>Share on other sites</h5> <ul class='ipsList_inline ipsList_noSpacing ipsClearfix' data-controller="core.front.core.sharelink"> <li> <a href="http://twitter.com/share?text=How%20to%20disable%20pagelines%20title%20%26%20metatags%20without%20hacking%20includes%2Flibrary.templates.php%3F&url=https%3A%2F%2Fforum.pagelines.com%2Ftopic%2F19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp%2F%3Fdo%3DfindComment%26comment%3D114260" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title='Share on Twitter' data-ipsTooltip rel='noopener'> <i class="fa fa-twitter"></i> </a></li> <li> <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fforum.pagelines.com%2Ftopic%2F19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp%2F%3Fdo%3DfindComment%26comment%3D114260" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title='Share on Facebook' data-ipsTooltip rel='noopener'> <i class="fa fa-facebook"></i> </a></li> <li> <a href="https://plus.google.com/share?url=https%3A%2F%2Fforum.pagelines.com%2Ftopic%2F19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp%2F%3Fdo%3DfindComment%26comment%3D114260" class="cShareLink cShareLink_google" target="_blank" data-role="shareLink" title='Share on Google+' data-ipsTooltip rel='noopener'> <i class="fa fa-google-plus"></i> </a></li> <li> <a href="http://pinterest.com/pin/create/button/?url=https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/?do=findComment%26comment=114260&media=https://forum-pagelines.netdna-ssl.com/uploads/monthly_2017_01/default-touch-icon.png.cdc50bc95f89a5ab303272ce37a14c6d.png" class="cShareLink cShareLink_pinterest" target="_blank" data-role="shareLink" title='Share on Pinterest' data-ipsTooltip rel='noopener'> <i class="fa fa-pinterest"></i> </a></li> </ul> </div> </div> </div> </div> </article> <input type="hidden" name="csrfKey" value="c61256ed6a15e262b4599543a576fe05" /> </form> </div> <a id="replyForm"></a> <div data-role="replyArea" class="cTopicPostArea ipsAreaBackground ipsPad cTopicPostArea_noSize ipsSpacer_top"> <div class='ipsType_center ipsPad cGuestTeaser'> <h2 class='ipsType_pageTitle'>Create an account or sign in to comment</h2> <p class='ipsType_light ipsType_normal ipsType_reset'>You need to be a member in order to leave a comment</p> <div class='ipsBox ipsPad ipsSpacer_top'> <div class='ipsGrid ipsGrid_collapsePhone'> <div class='ipsGrid_span6 cGuestTeaser_left'> <h2 class='ipsType_sectionHead'>Create an account</h2> <p class='ipsType_normal ipsType_reset ipsType_light ipsSpacer_bottom'>Sign up for a new account in our community. It's easy!</p> <a href='https://forum.pagelines.com/register/' class='ipsButton ipsButton_primary ipsButton_small'>Register a new account</a> </div> <div class='ipsGrid_span6 cGuestTeaser_right'> <h2 class='ipsType_sectionHead'>Sign in</h2> <p class='ipsType_normal ipsType_reset ipsType_light ipsSpacer_bottom'>Already have an account? Sign in here.</p> <a href='https://forum.pagelines.com/login/?ref=aHR0cHM6Ly9mb3J1bS5wYWdlbGluZXMuY29tL3RvcGljLzE5NDM0LWhvdy10by1kaXNhYmxlLXBhZ2VsaW5lcy10aXRsZS1tZXRhdGFncy13aXRob3V0LWhhY2tpbmctaW5jbHVkZXNsaWJyYXJ5dGVtcGxhdGVzcGhwLyNyZXBseUZvcm0=' data-ipsDialog data-ipsDialog-size='medium' data-ipsDialog-title="Sign In Now" class='ipsButton ipsButton_primary ipsButton_small'>Sign In Now</a> </div> </div> <hr class='ipsHr'> <ul class='ipsList_inline ipsList_noSpacing'> <li class='ipsType_center ipsPos_center cGuestTeaser_social'> <p><a class='ipsButton ipsButton_primary ipsButton_small' href='https://www.pagelines.com/oauth/authorize/?client_id=hEnbWGJOYaVuAf9gTz7InAr1M38TRc&response_type=code&redirect_uri=https://forum.pagelines.com/applications/core/interface/pagelines/auth.php'><i class='fa fa-pagelines'></i> Login via PageLines</a></p><p><a target='_blank' class='ipsButton ipsButton_primary ipsButton_small' href='https://www.pagelines.com/my-account/'><i class='fa fa-pagelines'></i> Signup To PageLines</a></p> </li> </ul> </div> </div> </div> <div class="ipsResponsive_noFloat ipsResponsive_showPhone ipsResponsive_block ipsSpacer_top"> <div data-followApp='forums' data-followArea='topic' data-followID='19434' data-controller='core.front.core.followButton'> <span class='ipsType_light ipsType_blendLinks ipsResponsive_hidePhone ipsResponsive_inline'><i class='fa fa-info-circle'></i> <a href='https://forum.pagelines.com/login/' title='Go to the sign in page'>Sign in to follow this</a>  </span> <div class="ipsFollow ipsPos_middle ipsButton ipsButton_link ipsButton_verySmall ipsButton_disabled" data-role="followButton"> <span>Followers</span> <span class='ipsCommentCount'>0</span> </div> </div> </div> <div class="ipsResponsive_noFloat ipsResponsive_showPhone ipsResponsive_block ipsSpacer_top"> </div> </div> <div class="ipsGrid ipsGrid_collapsePhone ipsPager ipsClearfix ipsSpacer_top ipsContained"> <div class="ipsGrid_span6 ipsType_left ipsPager_prev "> <a href="https://forum.pagelines.com/forum/98-dms-legacy-products/" title="Go to DMS & Legacy Products" rel="up"> <span class="ipsPager_type">Go To Topic Listing</span> <span class="ipsPager_title ipsType_light ipsTruncate ipsTruncate_line">DMS & Legacy Products</span> </a> </div> </div> <hr class="ipsHr"> <ul class='ipsList_inline ipsList_noSpacing ipsClearfix' data-controller="core.front.core.sharelink"> <li> <a href="http://twitter.com/share?text=How%20to%20disable%20pagelines%20title%20%26%20metatags%20without%20hacking%20includes%2Flibrary.templates.php%3F&url=https%3A%2F%2Fforum.pagelines.com%2Ftopic%2F19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp%2F" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title='Share on Twitter' data-ipsTooltip rel='noopener'> <i class="fa fa-twitter"></i> </a></li> <li> <a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fforum.pagelines.com%2Ftopic%2F19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp%2F" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title='Share on Facebook' data-ipsTooltip rel='noopener'> <i class="fa fa-facebook"></i> </a></li> <li> <a href="https://plus.google.com/share?url=https%3A%2F%2Fforum.pagelines.com%2Ftopic%2F19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp%2F" class="cShareLink cShareLink_google" target="_blank" data-role="shareLink" title='Share on Google+' data-ipsTooltip rel='noopener'> <i class="fa fa-google-plus"></i> </a></li> <li> <a href="http://pinterest.com/pin/create/button/?url=https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/&media=https://forum-pagelines.netdna-ssl.com/uploads/monthly_2017_01/default-touch-icon.png.cdc50bc95f89a5ab303272ce37a14c6d.png" class="cShareLink cShareLink_pinterest" target="_blank" data-role="shareLink" title='Share on Pinterest' data-ipsTooltip rel='noopener'> <i class="fa fa-pinterest"></i> </a></li> </ul> <div class='cWidgetContainer ' data-role='widgetReceiver' data-orientation='horizontal' data-widgetArea='footer'> <ul class='ipsList_reset'> <li class='ipsWidget ipsWidget_horizontal ipsBox ipsWidgetHide ipsHide' data-blockID='app_core_relatedContent_5s2q7clyz' data-blockConfig="true" data-blockTitle="Similar Content" data-blockErrorMessage="This block cannot be shown. This could be because it needs configuring, is unable to show on this page, or will show after reloading this page." data-controller='core.front.widgets.block'></li> </ul> </div> </div> <nav class='ipsBreadcrumb ipsBreadcrumb_bottom ipsFaded_withHover'> <ul class='ipsList_inline ipsPos_right'> <li > <a data-action="defaultStream" class='ipsType_light ' href='https://forum.pagelines.com/discover/'><i class='icon-newspaper'></i> <span>All Activity</span></a> </li> </ul> <ul data-role="breadcrumbList"> <li> <a title="Home" href='https://forum.pagelines.com/'> <span><i class='fa fa-home'></i> Home <i class='fa fa-angle-right'></i></span> </a> </li> <li> <a href='https://forum.pagelines.com/forum/94-pagelines/'> <span>PageLines <i class='fa fa-angle-right'></i></span> </a> </li> <li> <a href='https://forum.pagelines.com/forum/98-dms-legacy-products/'> <span>DMS & Legacy Products <i class='fa fa-angle-right'></i></span> </a> </li> <li> How to disable pagelines title & metatags without hacking includes/library.templates.php? </li> </ul> </nav> </div> </div> </main><footer id="ipsLayout_footer" class="ipsClearfix"><div class="ipsLayout_container"> <div class='ipsAdvertisement ipsSpacer_both ipsSpacer_half'> <ul class='ipsList_inline ipsType_center ipsList_reset ipsList_noSpacing'> <li class='ipsAdvertisement_large ipsResponsive_showDesktop ipsResponsive_inlineBlock ipsAreaBackground_light'> <a href='https://forum.pagelines.com/index.php?app=core&module=system&controller=redirect&do=advertisement&ad=1&csrfKey=c61256ed6a15e262b4599543a576fe05' rel='nofollow noopener'> <img src='//forum-pagelines.netdna-ssl.com/uploads/monthly_2016_07/Ad-Extensions-728x90.jpg.2f9ce2c57a0d0ba74d7d82c8eb7a5342.jpg' alt="advertisement_alt" class='ipsImage ipsContained'> </a> </li> <li class='ipsAdvertisement_medium ipsResponsive_showTablet ipsResponsive_inlineBlock ipsAreaBackground_light'> <a href='https://forum.pagelines.com/index.php?app=core&module=system&controller=redirect&do=advertisement&ad=1&csrfKey=c61256ed6a15e262b4599543a576fe05' rel='nofollow noopener'> <img src='//forum-pagelines.netdna-ssl.com/uploads/monthly_2016_07/Ad-Extensions-728x90.jpg.2f9ce2c57a0d0ba74d7d82c8eb7a5342.jpg' alt="advertisement_alt" class='ipsImage ipsContained'> </a> </li> <li class='ipsAdvertisement_small ipsResponsive_showPhone ipsResponsive_inlineBlock ipsAreaBackground_light'> <a href='https://forum.pagelines.com/index.php?app=core&module=system&controller=redirect&do=advertisement&ad=1&csrfKey=c61256ed6a15e262b4599543a576fe05' rel='nofollow noopener'> <img src='//forum-pagelines.netdna-ssl.com/uploads/monthly_2016_07/Ad-Extensions-728x90.jpg.2f9ce2c57a0d0ba74d7d82c8eb7a5342.jpg' alt="advertisement_alt" class='ipsImage ipsContained'> </a> </li> </ul> </div> <ul class='ipsList_inline ipsType_center ipsSpacer_top' id="elFooterLinks"> <li><a rel="nofollow" href='https://forum.pagelines.com/contact/' >Contact Us</a></li> </ul> <p id='elCopyright'> <span id='elCopyright_userLine'></span> <a rel='nofollow' title='Invision Community' href='https://www.invisioncommunity.com/'>Powered by Invision Community</a> </p> </div> </footer> <div id='elMobileDrawer' class='ipsDrawer ipsHide'> <a href='#' class='ipsDrawer_close' data-action='close'><span>×</span></a> <div class='ipsDrawer_menu'> <div class='ipsDrawer_content'> <div class='ipsSpacer_bottom ipsPad'> <ul class='ipsToolList ipsToolList_vertical'> <li> <a href='https://forum.pagelines.com/login/' class='ipsButton ipsButton_light ipsButton_small ipsButton_fullWidth'>Existing user? Sign In</a> </li> <li> <a href='https://forum.pagelines.com/register/' id='elRegisterButton_mobile' class='ipsButton ipsButton_small ipsButton_fullWidth ipsButton_important'>Sign Up</a> </li> </ul> </div> <ul class='ipsDrawer_list'> <li><a href='https://forum.pagelines.com' >Forums</a></li> </ul> </div> </div> </div> <script type='text/javascript'> var ipsDebug = false; var CKEDITOR_BASEPATH = '//forum.pagelines.com/applications/core/interface/ckeditor/ckeditor/'; var ipsSettings = { cookie_path: "/", cookie_prefix: "ips4_", cookie_ssl: true, upload_imgURL: "", message_imgURL: "", notification_imgURL: "", baseURL: "//forum.pagelines.com/", jsURL: "//forum.pagelines.com/applications/core/interface/js/js.php", csrfKey: "c61256ed6a15e262b4599543a576fe05", antiCache: "0649a56e7a", disableNotificationSounds: false, useCompiledFiles: true, links_external: true, memberID: 0, analyticsProvider: "ga", viewProfiles: false, }; </script> <script type='text/javascript' src='//forum-pagelines.netdna-ssl.com/uploads/javascript_global/root_library.js.ab755967db93a515f1fe475646385dc7.js' data-ips></script> <script type='text/javascript' src='//forum-pagelines.netdna-ssl.com/uploads/javascript_global/root_js_lang_1.js.6155a343f83c64055963f331d421d273.js' data-ips></script> <script type='text/javascript' src='//forum-pagelines.netdna-ssl.com/uploads/javascript_global/root_framework.js.20952ad8efe0dbe7d5c55604681a4f94.js' data-ips></script> <script type='text/javascript' src='//forum-pagelines.netdna-ssl.com/uploads/javascript_core/global_global_core.js.3f639c6ef0722225968240fcdf81e030.js' data-ips></script> <script type='text/javascript' src='//forum-pagelines.netdna-ssl.com/uploads/javascript_core/plugins_plugins.js.5cf6ec28a29179ac0676668d544f7f15.js' data-ips></script> <script type='text/javascript' src='//forum-pagelines.netdna-ssl.com/uploads/javascript_global/root_front.js.e13c27c57a99f21f4d621be1293d5b5c.js' data-ips></script> <script type='text/javascript' src='//forum-pagelines.netdna-ssl.com/uploads/javascript_forums/front_front_topic.js.3ab19ad324656a74d4fed317f330dc9d.js' data-ips></script> <script type='text/javascript' src='//forum-pagelines.netdna-ssl.com/uploads/javascript_core/front_front_core.js.1b3752d95970ed173879793dbb552844.js' data-ips></script> <script type='text/javascript' src='//forum-pagelines.netdna-ssl.com/uploads/javascript_global/root_map.js.0e93dede8cd44dda697ca77f1c460e0f.js' data-ips></script> <script type='text/javascript'> ips.setSetting( 'date_format', jQuery.parseJSON('"mm\/dd\/yy"') ); ips.setSetting( 'date_first_day', jQuery.parseJSON('0') ); ips.setSetting( 'remote_image_proxy', jQuery.parseJSON('1') ); ips.setSetting( 'ipb_url_filter_option', jQuery.parseJSON('"none"') ); ips.setSetting( 'url_filter_any_action', jQuery.parseJSON('"allow"') ); ips.setSetting( 'bypass_profanity', jQuery.parseJSON('0') ); </script> <script type='application/ld+json'> { "@context": "http://schema.org", "@type": "DiscussionForumPosting", "url": "https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/", "discussionUrl": "https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/", "name": "How to disable pagelines title \u0026 metatags without hacking includes/library.templates.php?", "headline": "How to disable pagelines title \u0026 metatags without hacking includes/library.templates.php?", "text": "Long story short: I have a custom php directory that I have embeded inside pagelines framework using hooks in a dedicated wordpress installation (I am using All in one SEO plugin in my main site but could not disable that plugin on the specific pages of my directory where I want to use dynamically generated titles and metatags).\n\t\n\tSo: I have found the pagelines code for the in includes/library.templates.php and need to disable it so that it doesn\u0027t duplicate with my custom one. Since I am not using any SEO plugin that pagelines recognizes and I\u0027d rather not hack the code, how do I get it to implement\n\t$title = trim( wp_title( \u0027\u0027, false ) );\n\twithout manually deleting the code that\u0027s above?", "dateCreated": "2012-05-18T20:52:57+0000", "datePublished": "2012-05-18T20:52:57+0000", "pageStart": 1, "pageEnd": 1, "image": "https://secure.gravatar.com/avatar/5a7235d91fef5cdbba4cd3f30dc66b26?d=https://forum-pagelines.netdna-ssl.com/uploads/monthly_2017_06/S.png.a61d38146314325c437d75cb89d251c9.png", "author": { "@type": "Person", "name": "sgendry", "image": "https://secure.gravatar.com/avatar/5a7235d91fef5cdbba4cd3f30dc66b26?d=https://forum-pagelines.netdna-ssl.com/uploads/monthly_2017_06/S.png.a61d38146314325c437d75cb89d251c9.png", "url": "https://forum.pagelines.com/profile/31156-sgendry/" }, "interactionStatistic": [ { "@type": "InteractionCounter", "interactionType": "http://schema.org/ViewAction", "userInteractionCount": 7074 }, { "@type": "InteractionCounter", "interactionType": "http://schema.org/CommentAction", "userInteractionCount": 13 }, { "@type": "InteractionCounter", "interactionType": "http://schema.org/FollowAction", "userInteractionCount": 0 } ], "comment": [ { "@type": "Comment", "url": "https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/?do=findComment\u0026comment=19458", "author": { "@type": "Person", "name": "sgendry", "image": "https://secure.gravatar.com/avatar/5a7235d91fef5cdbba4cd3f30dc66b26?d=https://forum-pagelines.netdna-ssl.com/uploads/monthly_2017_06/S.png.a61d38146314325c437d75cb89d251c9.png", "url": "https://forum.pagelines.com/profile/31156-sgendry/" }, "dateCreated": "2012-05-18T20:52:57+0000", "text": "Long story short: I have a custom php directory that I have embeded inside pagelines framework using hooks in a dedicated wordpress installation (I am using All in one SEO plugin in my main site but could not disable that plugin on the specific pages of my directory where I want to use dynamically generated titles and metatags).\n\t\n\tSo: I have found the pagelines code for the in includes/library.templates.php and need to disable it so that it doesn\u0027t duplicate with my custom one. Since I am not using any SEO plugin that pagelines recognizes and I\u0027d rather not hack the code, how do I get it to implement\n\t$title = trim( wp_title( \u0027\u0027, false ) );\n\twithout manually deleting the code that\u0027s above?", "mainEntityOfPage": "https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/" }, { "@type": "Comment", "url": "https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/?do=findComment\u0026comment=113969", "author": { "@type": "Person", "name": "rangelone", "image": "//forum-pagelines.netdna-ssl.com/uploads/profile/photo-thumb-6.jpg", "url": "https://forum.pagelines.com/profile/6-rob/" }, "dateCreated": "2012-05-18T21:24:26+0000", "text": "First, it\u0027s inadvisable to edit core files and they will be overwritten when an update comes along.\u0026#13;\n\t\u0026#13;\n\tI\u0027m afraid I\u0027m unclear which titles you\u0027re trying to hide. Can you take a snapshot and link it here so that we can see what you\u0027re trying to hide? Usually we can recommend a CSS solution to hide things, quite easily.", "mainEntityOfPage": "https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/" }, { "@type": "Comment", "url": "https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/?do=findComment\u0026comment=113980", "author": { "@type": "Person", "name": "sgendry", "image": "https://secure.gravatar.com/avatar/5a7235d91fef5cdbba4cd3f30dc66b26?d=https://forum-pagelines.netdna-ssl.com/uploads/monthly_2017_06/S.png.a61d38146314325c437d75cb89d251c9.png", "url": "https://forum.pagelines.com/profile/31156-sgendry/" }, "dateCreated": "2012-05-18T23:11:10+0000", "text": "The link to the page I was referring to is included in my initial post.\u0026#13;\n\thttp://www.laughteryogaamerica.com/maps/profile/?center=3\u0026#13;\n\tSee the source:\u0026#13;\n\t...\u0026#13;\n\t[THIS IS THE PAGELINES TITLE TAG I WANT TO HIDE/REMOVE]\nProfile...\n\n\u0026#13;\n\t[THIS IS MY OWN CUSTOM TITLE TAG]this is a test\u0026#13;\n\t\u0026#13;\n\tIdeally my title tag would display at the very top of the page, where the pagelines title tag currently is.", "mainEntityOfPage": "https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/" }, { "@type": "Comment", "url": "https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/?do=findComment\u0026comment=113985", "author": { "@type": "Person", "name": "_Simon_", "image": "//forum-pagelines.netdna-ssl.com/uploads/monthly_2016_02/PL5.png.a4d11b9942ccb51a4c2db1479774c073.thumb.png.b95c11b9342797b6ee06274c85b1c68d.png", "url": "https://forum.pagelines.com/profile/1-simon/" }, "dateCreated": "2012-05-19T00:17:56+0000", "text": "PlatformPro and PageLines Framework both recognize wp-seo and AIOSEO and let them take over, then they pass the title through a filter:\u0026#13;\n\t[code]\u0026#13;\n\t// Print the title.\u0026#13;\n\t\techo apply_filters( \u0027pagelines_meta_title\u0027, $title );\u0026#13;\n\t[/code]\u0026#13;\n\tso if you use this filter, you can fully control the title.", "mainEntityOfPage": "https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/" }, { "@type": "Comment", "url": "https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/?do=findComment\u0026comment=113987", "author": { "@type": "Person", "name": "sgendry", "image": "https://secure.gravatar.com/avatar/5a7235d91fef5cdbba4cd3f30dc66b26?d=https://forum-pagelines.netdna-ssl.com/uploads/monthly_2017_06/S.png.a61d38146314325c437d75cb89d251c9.png", "url": "https://forum.pagelines.com/profile/31156-sgendry/" }, "dateCreated": "2012-05-19T00:46:30+0000", "text": "Your help is much appreciated.\u0026#13;\n\tIs this a code I need to paste in functions.php ?\u0026#13;\n\tIf so it doesn\u0027t work.\u0026#13;\n\tFor reference I am not using any SEO plugin at all.", "mainEntityOfPage": "https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/" }, { "@type": "Comment", "url": "https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/?do=findComment\u0026comment=113988", "author": { "@type": "Person", "name": "sgendry", "image": "https://secure.gravatar.com/avatar/5a7235d91fef5cdbba4cd3f30dc66b26?d=https://forum-pagelines.netdna-ssl.com/uploads/monthly_2017_06/S.png.a61d38146314325c437d75cb89d251c9.png", "url": "https://forum.pagelines.com/profile/31156-sgendry/" }, "dateCreated": "2012-05-19T00:49:39+0000", "text": "(I am not a programmer myself, so apologies if this is a strange question)\u0026#13;\n\tAm simply the go-between, trying to pre-digest his work as much as possible.", "mainEntityOfPage": "https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/" }, { "@type": "Comment", "url": "https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/?do=findComment\u0026comment=114015", "author": { "@type": "Person", "name": "catrina", "image": "https://secure.gravatar.com/avatar/574c0d1577780ce5b742018984f40cf5?d=https://forum-pagelines.netdna-ssl.com/uploads/monthly_2017_06/C.png.89f7e4160503aea796032445c29d1368.png", "url": "https://forum.pagelines.com/profile/8837-catrina/" }, "dateCreated": "2012-05-19T17:35:08+0000", "text": "Yes, that code above is supposed to go in functions.php, but you need to make sure you\u0027re editing the file in PlatformBase, the child theme.", "mainEntityOfPage": "https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/" }, { "@type": "Comment", "url": "https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/?do=findComment\u0026comment=114164", "author": { "@type": "Person", "name": "sgendry", "image": "https://secure.gravatar.com/avatar/5a7235d91fef5cdbba4cd3f30dc66b26?d=https://forum-pagelines.netdna-ssl.com/uploads/monthly_2017_06/S.png.a61d38146314325c437d75cb89d251c9.png", "url": "https://forum.pagelines.com/profile/31156-sgendry/" }, "dateCreated": "2012-05-21T21:03:48+0000", "text": "I have updated /wp-content/themes/pagelines-template-theme/functions.php and added\u0026#13;\n\t\u0026#13;\n\t// Print the title.\u0026#13;\n\t\techo apply_filters( \u0027pagelines_meta_title\u0027, $title );\u0026#13;\n\t\u0026#13;\n\tbut that doesn\u0027t do anything. The pagelines title tag still appears. See\u0026#13;\n\thttp://www.laughteryogaamerica.com/maps/profile/?center=3\u0026#13;\n\t\u0026#13;\n\t\u0026#13;\n\tAlso and to clarify: it is not necessary to have the pagelines customize plugin if you have the PlatformBase child theme, right?", "mainEntityOfPage": "https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/" }, { "@type": "Comment", "url": "https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/?do=findComment\u0026comment=114172", "author": { "@type": "Person", "name": "catrina", "image": "https://secure.gravatar.com/avatar/574c0d1577780ce5b742018984f40cf5?d=https://forum-pagelines.netdna-ssl.com/uploads/monthly_2017_06/C.png.89f7e4160503aea796032445c29d1368.png", "url": "https://forum.pagelines.com/profile/8837-catrina/" }, "dateCreated": "2012-05-22T02:19:19+0000", "text": "I noticed that your directory says \"pagelines-template-theme\" rather than the name of the theme that\u0027s in the file name when the theme is downloaded. Did you change this?\u0026#13;\n\t\u0026#13;\n\tIt\u0027s not necessary to have the PageLines Customize plugin if you\u0027re using the base theme on PageLines Framework. PageLines Customize plugin is only available for PageLines Framework, not PlatformPro. Also, I\u0027m going to move this topic to the PageLines Framework category since it\u0027s in the PlatformPro category.", "mainEntityOfPage": "https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/" }, { "@type": "Comment", "url": "https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/?do=findComment\u0026comment=114243", "author": { "@type": "Person", "name": "sgendry", "image": "https://secure.gravatar.com/avatar/5a7235d91fef5cdbba4cd3f30dc66b26?d=https://forum-pagelines.netdna-ssl.com/uploads/monthly_2017_06/S.png.a61d38146314325c437d75cb89d251c9.png", "url": "https://forum.pagelines.com/profile/31156-sgendry/" }, "dateCreated": "2012-05-22T21:30:11+0000", "text": "?\u0026#13;\n\tDo as you feel is relevant.\u0026#13;\n\tI am using Pagelines Framework.\u0026#13;\n\tI downloaded the theme from the store and did not rename anything. What name do you want me to give it?\u0026#13;\n\tAlso, I am unfortunately none the wiser because the solution you proposed does not work.\u0026#13;\n\tHacking the theme is easy and I can get that to work. How to get pagelines to turn off its own \n tag remains a mystery.\u0026#13;\n\tYour thoughts?\n", "mainEntityOfPage": "https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/" }, { "@type": "Comment", "url": "https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/?do=findComment\u0026comment=114252", "author": { "@type": "Person", "name": "_Simon_", "image": "//forum-pagelines.netdna-ssl.com/uploads/monthly_2016_02/PL5.png.a4d11b9942ccb51a4c2db1479774c073.thumb.png.b95c11b9342797b6ee06274c85b1c68d.png", "url": "https://forum.pagelines.com/profile/1-simon/" }, "dateCreated": "2012-05-23T00:13:50+0000", "text": "Erm, when i posted the filter code, i was showing what filter it uses to generate the title. $title is passed through \u0027pagelines_meta_title\u0027 filters.\u0026#13;\n\tSo if you add a filter to pagelines_meta_title with your title, it will override the main title.\u0026#13;\n\t\u0026#13;\n\tAdding echo apply_filters( \u0027pagelines_meta_title\u0027, $title ); to functions.php will not do anything at all other than generating an error as $title is an undefined variable.\u0026#13;\n\t\u0026#13;\n\t[code]add_filter( \u0027pagelines_meta_title\u0027, \u0027change_my_title\u0027 );\u0026#13;\n\tfunction change_my_title( $title ) {\u0026#13;\n\t return \u0027hello, i am a new title\u0027;\u0026#13;\n\t}[/code]", "mainEntityOfPage": "https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/" }, { "@type": "Comment", "url": "https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/?do=findComment\u0026comment=114253", "author": { "@type": "Person", "name": "sgendry", "image": "https://secure.gravatar.com/avatar/5a7235d91fef5cdbba4cd3f30dc66b26?d=https://forum-pagelines.netdna-ssl.com/uploads/monthly_2017_06/S.png.a61d38146314325c437d75cb89d251c9.png", "url": "https://forum.pagelines.com/profile/31156-sgendry/" }, "dateCreated": "2012-05-23T00:36:05+0000", "text": "Awesome. That did it for me. Thank you.", "mainEntityOfPage": "https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/" }, { "@type": "Comment", "url": "https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/?do=findComment\u0026comment=114260", "author": { "@type": "Person", "name": "sgendry", "image": "https://secure.gravatar.com/avatar/5a7235d91fef5cdbba4cd3f30dc66b26?d=https://forum-pagelines.netdna-ssl.com/uploads/monthly_2017_06/S.png.a61d38146314325c437d75cb89d251c9.png", "url": "https://forum.pagelines.com/profile/31156-sgendry/" }, "dateCreated": "2012-05-23T05:28:51+0000", "text": "One more fine-tuning question in case you are willing to answer (your help is most valuable and appreciated!).\u0026#13;\n\t\u0026#13;\n\tHere is the essence of what I have used:\u0026#13;\n\t\u0026#13;\n\tadd_filter( \u0027pagelines_meta_title\u0027, \u0027change_my_title\u0027 );\u0026#13;\n\tfunction change_my_title( $title ) {\u0026#13;\n\t\t$page_title = \u0027\u0027;\u0026#13;\n\t\tif( is_home() ){ $page_title = \u0027MY KEYWORDS\u0027; }\u0026#13;\n\t\tif( is_page( 17 ) ){ $page_title = \u0027MY KEYWORDS\u0027; }\u0026#13;\n\t}\u0026#13;\n\t\u0026#13;\n\tThis works well for page 17, but not for the home page (which happens to be page 5).\u0026#13;\n\tWith this code the home page displays an empty \n tag.\u0026#13;\n\tI have tried\u0026#13;\n\tif( is_page( 5 ) ){ $page_title = \u0027MY KEYWORDS\u0027; }\u0026#13;\n\tbut that did not work.\u0026#13;\n\tWhat code should I use to have my chosen tag display on the home page?\n\n", "mainEntityOfPage": "https://forum.pagelines.com/topic/19434-how-to-disable-pagelines-title-metatags-without-hacking-includeslibrarytemplatesphp/" } ] } </script> <script type='application/ld+json'> { "@context": "http://www.schema.org", "@type": "WebSite", "name": "PageLines Support", "url": "https://forum.pagelines.com/", "potentialAction": { "type": "SearchAction", "query-input": "required name=query", "target": "https://forum.pagelines.com/search/?q={query}" }, "inLanguage": [ { "@type": "Language", "name": "English (USA)", "alternateName": "en-US" } ] } </script> <script type='application/ld+json'> { "@context": "http://www.schema.org", "@type": "Organization", "name": "PageLines Support", "url": "https://forum.pagelines.com/", "logo": "//forum-pagelines.netdna-ssl.com/uploads/monthly_2017_01/pagelines-forums-logo.png.830d8bed049181605f7409a81999ec0f.png", "address": { "@type": "PostalAddress", "streetAddress": "", "addressLocality": null, "addressRegion": null, "postalCode": null, "addressCountry": null } } </script> <script type='application/ld+json'> { "@context": "http://schema.org", "@type": "BreadcrumbList", "itemListElement": [ { "@type": "ListItem", "position": 1, "item": { "@id": "https://forum.pagelines.com/forum/94-pagelines/", "name": "PageLines" } }, { "@type": "ListItem", "position": 2, "item": { "@id": "https://forum.pagelines.com/forum/98-dms-legacy-products/", "name": "DMS & Legacy Products" } } ] } </script> <script type='application/ld+json'> { "@context": "http://schema.org", "@type": "ContactPage", "url": "https://forum.pagelines.com/contact/" } </script> <!-- Google Analytics --> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-6282814-6', 'auto'); ga('send', 'pageview'); </script> <!-- End Google Analytics --> <!--ipsQueryLog--> <!--ipsCachingLog--> </body></html>