Tagged: x
-
AuthorPosts
-
May 24, 2016 at 10:37 am #1007462
cmeklirParticipantJUST AFTER I POSTED THE ONES WHERE I ENTERED A TITLE STARTED TO DISPLAY IT BUT I DON”T GET A TITLE UNLESS I ENTER IT On this page:
http://0e8.7cd.myftpupload.com/portfolio-category/landscapes-nature/
The tile should read ‘Landscapes and Nature’
That’s what I have entered in the title field for the category.
But whether I leave that blank and expect it to come from the slug or enter something in those fields, all the portfolio categories are titled Category Archive. I’m guessing either I’m doing something wrong or I need to change the code below in Integrity _landmarkheader.php?
Looked in another thread but hissolution didn’t work.
`<?php$meta = x_get_taxonomy_meta();
$title = ( $meta[‘archive-title’] != ” ) ? $meta[‘archive-title’] : __( ‘Category Archive’, ‘__x__’ );
$subtitle = ( $meta[‘archive-subtitle’] != ” ) ? $meta[‘archive-subtitle’] : __( “Below you’ll find a list of all posts that have been categorized as “, ‘__x__’ ) . ‘<strong>“’ . single_cat_title( ”, false ) . ‘”</strong>’;?>
<header class=”x-header-landmark x-container max width”>
<h1 class=”h-landmark”><span><?php echo $title ?></span></h1>
<p class=”p-landmark-sub”><span><?php echo $subtitle ?></span></p>
</header>`May 24, 2016 at 11:41 am #1007569
JadeModeratorHi there,
I have just checked the page and it seems to be displaying the correct title. See screenshot below.
Kindly have a look and let us know if you need further help. Thank you.
May 25, 2016 at 7:33 am #1008935
cmeklirParticipantYes as I said it works now as long as I fill in that custom title field but it doesn’t pick up the page name without it. Not an issue for this site as it will be a limited number of pages but it doesn’t seem to be working right. Thx.
May 25, 2016 at 8:15 am #1009012
ChristopherModeratorHi there,
Yes, you should add category title, the field won’t be filled automatically.
Is that your question?Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1007462 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
