Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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

    #428385

    Hi 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!
    Elliott

    #428522

    Thanks 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:

    Screenshot

    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.

    #429197

    Hi!

    Did you get it sorted? This is what I’m seeing.

    Try clearing your browser cache.

    Cheers!
    Elliott

    #429218

    That 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:

    http://coalitionfemmes.ab.ca/dev/?p=251

    #429812

    Hi!

    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.
    #432380

    I 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.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Changing blog post excerpt and link-back page from single post’ is closed to new replies.