Digital experiences for all disciplines
New Landing › How can we help? › Atelier › POSTS TAGGED WITH phrase
New Landing › How can we help? › Atelier › POSTS TAGGED WITH phrase
- This topic has 26 replies, 4 voices, and was last updated 8 years by Kyle – SUPPORT.
-
Posted in: Atelier
-
August 13, 2015 at 9:19 pm #203874
Hi Swiftideas,
I was wondering if there is a simple way to get rid of the phrase “POSTS TAGGED WITH ” in the archive pages for tags?
Thank you,
JohanAugust 14, 2015 at 12:07 pm #204052Hi
Sure, go to Atelier/swift-framework/core/sf-page-heading.php and find line 314:
<?php /* If this is a tag archive */ if ( is_tag() ) { ?> <h1 <?php echo $article_heading_text; ?>><?php _e( "Posts tagged with", "swiftframework" ); ?> ‘<?php single_tag_title(); ?>’</h1>
– Kyle
August 14, 2015 at 6:20 pm #204206Thanks Kyle …in a child theme set-up, should I create the swift-framework/core/ directory in the child, copy the file over and then edit? Or should I copy that full function to functions.php?
August 14, 2015 at 6:26 pm #204209Hi,
In this specific case copying the file won’t work. Just copy the changed function to the functions.php of the child theme.
-Rui
August 14, 2015 at 7:19 pm #204220Hi Rui,
I tried that, but for some reason the breadcrumbs moved under the title after just copying the function over. Any clue why that is?
Will try again in a few days when I have a bit more time …
Thanks,
JohanAugust 14, 2015 at 7:23 pm #204221This reply has been marked as private.August 17, 2015 at 7:38 pm #204712Hi Rui,
Yes, I cleared the cache. As soon as I copy the sf_page_heading in functions.php of my child theme, the breadcrumb moves under title, regardless of the page I am looking at. I deleted it again now, because my site is live.
If you cannot simulate it, I can see if I can simulate it in my test environment and give you access to that …
Thanks,
JohanAugust 18, 2015 at 8:27 am #204821Hi
Did you copy the whole function? Or just the bit of code I pasted above?
– Kyle
August 18, 2015 at 9:20 am #204845Hi Kyle,
sf_page_heading consists of 2 functions and I copied over the first function in full … so skipped the sf_post_split_heading_buttons part.
Cheers,
JohanAugust 18, 2015 at 11:38 am #204916Can you please provide me with a login so I can try and sort this for you
– Kyle
August 18, 2015 at 1:05 pm #204956This reply has been marked as private.August 18, 2015 at 1:29 pm #204966What’s the site login?
– Kyle
August 18, 2015 at 2:44 pm #205013This reply has been marked as private.August 19, 2015 at 6:14 pm #205520Hi Johan,
I have a tried and tested solution, please copy this code, into your functions.php file. Make a backup first of course.
I can confirm this is working for me.
Thanks,
David.August 20, 2015 at 6:56 pm #205928Hi David,
Apologies for the late reply. Was travelling the past few days…
I tried the code you suggested. Copied the whole thing into my functions.php, but still get the breadcrumbs underneath the title/subtitle when I do that.
Did you test with fancy titles and the breadcrumb in a separate div like I use it?
Thanks,
Johan -
Posted in: Atelier
You must be logged in and have valid license to reply to this topic.