-
AuthorPosts
-
April 14, 2015 at 12:38 am #427953
Hi, love the theme and the support and forum here are invaluable!
I am just starting to get used to using filters. I’ve managed to alter the blog post excerpts on the page successfully in the config-templatebuilder/avia-shortcodes/postslider.php file but I was wondering if it would be possible to do this with filters instead. That way I wouldn’t have to worry about the code being overrun in an event of an update?
I also have a problem with a single post not showing the proper category page in the menu (I altered the title with a filter but before it was also not correct). Here is the page: http://coalitionfemmes.ab.ca/dev/?page_id=40 and if you click on one of the posts you will see that it is now showing a different section (should be Activités and not Nouvelles).
Any help would be greatly appreciated.
Thanks
April 14, 2015 at 6:24 pm #428385Hi mpcastonguay!
1. See here for doing edits to shortcodes in a child theme, https://kriesi.at/support/topic/is-it-possible-to-modify-files-in-enfold-child/#post-218226.
2. I’m not sure I understand. Can you take a screenshot and highlight what is going on?
Cheers!
ElliottApril 14, 2015 at 11:30 pm #428522Thanks Elliott. The shortcodes filter is brilliant.
For the other problem:
1. Clicking on an item on this page: http://coalitionfemmes.ab.ca/dev/?page_id=40
2. Brings you to this page:But as you can see in the screenshot (highlighted) it shows the page as being NOUVELLES but it should be ACTIVITÉS.
Not sure why it does this. I used a filter to change the page title as it was NOUVELLES before as well.
April 15, 2015 at 8:14 pm #429197Hi!
Did you get it sorted? This is what I’m seeing.
Try clearing your browser cache.
Cheers!
ElliottApril 15, 2015 at 8:56 pm #429218That is the parent page you are looking at but it is the single page that is having the problem (by clicking on one of the links). Here is the link that goes with the previous screenshot:
April 16, 2015 at 6:39 pm #429812Hi!
That’s a post. Is “Nouvelles” the page you have set as your blog page? If so then it’s working correctly.
It looks like “Activites” is a page where your displaying posts from a specific category correct? I don’t see an easy way of going about that. For example, what if a post had two categories? Would it highlight two menu items? I’m not sure if that is going to be possible without lots of customization.
Regards,
Elliott- This reply was modified 9 years, 7 months ago by Elliott.
April 21, 2015 at 9:01 pm #432380I finally got it to work by editing the includes/helper-main-menu.php file. I added the following code
$category=get_the_category($_GET['p']); if((int)$category[0]->cat_ID == 5) $args['walker']->__set('blog_id','40');
above the
wp_nav_menu($args);
around line 133.
-
AuthorPosts
- The topic ‘Changing blog post excerpt and link-back page from single post’ is closed to new replies.