-
AuthorPosts
-
March 5, 2014 at 7:26 pm #232879
Hello,
I have couple of issues
1. http://crescenthalal.com/category/crescent-recipes/whole-chicken-recipes/
in the above page as you can see the the excerpt is showing the shortcode I want to hide the excerpt and just show the image and the title.2. http://crescenthalal.com/meyer-lemon-rosemary-roasted-chicken/
in these recipe category page on the title its showing blog-latest news instead of the actual category how to fix it
thanks
March 6, 2014 at 6:44 am #233069Hi Albulushi!
How are you? I hope you’re doing well today.
1.) Please add this on Quick CSS or custom.css to remove the shortcode:
.slide-entry-excerpt { display: none; }
2.) Please add this on functions.php:
add_filter('avf_title_args', 'fix_single_post_title', 10, 2); function fix_single_post_title($args,$id) { if ($args['title'] == 'Blog – Latest News') { $args['title'] = ucfirst(get_the_category($id)); $args['link'] = get_permalink($id); } return $args; }
Regards,
IsmaelMarch 6, 2014 at 6:06 pm #233308the css quickfix works but its showing archive of the category title as well how to remove that.
and adding the function cause an error on site
Parse error: syntax error, unexpected T_FUNCTION in /home/cresce19/public_html/wp-content/themes/enfold-child/enfold-child/functions.php on line 8
March 7, 2014 at 4:47 am #233565Hey!
Can you post your Child functions.php file contents?
Cheers!
JosueMarch 7, 2014 at 4:56 pm #233831<?php
/*
* Add your own functions here. You can also copy some of the theme functions into this file.
* WordPress will use those functions instead of the original functions then.
*/March 7, 2014 at 6:00 pm #233885March 7, 2014 at 6:26 pm #233894thats the only code appears in the child function.php
<?php
/*
* Add your own functions here. You can also copy some of the theme functions into this file.
* WordPress will use those functions instead of the original functions then.
*/March 7, 2014 at 6:40 pm #233900Hi,
Can you create an administrator account and post it here as a private reply?
Regards,
JosueMarch 7, 2014 at 6:42 pm #233901This reply has been marked as private.March 7, 2014 at 6:51 pm #233903Hi!
The user provided is not working.
ERROR: The username or password you entered is incorrect.
Regards,
JosueMarch 7, 2014 at 7:11 pm #233911This reply has been marked as private.March 7, 2014 at 7:57 pm #233942Hi!
It appears to be fixed the issue:
http://crescenthalal.com/category/crescent-recipes/whole-chicken-recipes/Cheers!
JosueMarch 7, 2014 at 8:12 pm #233950This reply has been marked as private.March 10, 2014 at 7:52 pm #234923Hey!
You can change the text in the avia_which_archive function in framework>php>function-set-avia-frontend .
Regards,
DevinMarch 10, 2014 at 7:56 pm #234931anything on the the second issue ?
March 13, 2014 at 8:29 am #236739Hi!
You can show the post title instead of the “Blog – Latest news” text. Insert this code at the very bottom of enfold/functions.php:
add_filter('avf_title_args', 'fix_blog_page_title', 10, 2); function fix_blog_page_title($args,$id) { $args['title'] = get_the_title($id); $args['link'] = get_permalink($id); return $args; }
to replace the default title.
Best regards,
Peter -
AuthorPosts
- You must be logged in to reply to this topic.