Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author James Koster

    (@jameskoster)

    Take a look in projects-hooks.php. You can remove this pagination by adding:

    remove_action( 'projects_after_single_project', 'projects_single_pagination', 5 );

    To your child theme’s functions.php file 🙂

    Thread Starter hugotiles

    (@hugotiles)

    Thank you for your quick reply. I copied and pasted this code into my Child Theme’s functions.php but it did not work. Any ideas what I’m missing here?

    Thanks

    Plugin Author James Koster

    (@jameskoster)

    nope, that should work, unless you’re using a theme that already removes it and adds it’s own navigation in. Some WooThemes do this.

    Thread Starter hugotiles

    (@hugotiles)

    Yes, I’m running Canvas and it looks that it does just that. I’ve looked into their support forum and it seems that the code structure I would need to use goes something like this:

    add_action( ‘projects_after_single_project’, ‘projects_single_pagination’, 5 );
    function remove_XXXXXXXXXXXX() {
    remove_action( ‘projects_after_single_project’, ‘projects_single_pagination’, 5 );
    }

    My problem is that I don’t know what would be the name of the function to use in place of the xxxxxxxxx…

    Could you help me with that? Thanks

    Plugin Author James Koster

    (@jameskoster)

    Seeing as you’re using Canvas, you should post this in the WooThemes support channel 😉

    That code doesn’t look right to me.

    Should be more like

    remove_action( 'projects_after_single_project', 'woo_postnav', 5 );

    Thread Starter hugotiles

    (@hugotiles)

    I’ll try to see if my theme maker can help me with that missing line of code. Thank you.

    Thread Starter hugotiles

    (@hugotiles)

    unfortunately, I don’t know how to work around Canvas’ inner works. However, I got around this problem with CSS code. If it could help someone, here’s what I did:

    insert this code inside your child theme custom.css:

    .nav-prev { display:none; }
    .nav-next{ display:none; }

    Plugin Author James Koster

    (@jameskoster)

    Well that’s not really the best way to do it 🙂 The code I gave you should work.

    If you’re relying on CSS though, you might want to prefix those selectors with .single-project as they might be used elsewhere.

    Thread Starter hugotiles

    (@hugotiles)

    Hi James,

    I’m still waiting for Woothemes to get back to me, but pasting the code:

    remove_action( ‘projects_after_single_project’, ‘projects_single_pagination’, 5 );

    in my Canvas child theme does not remove the navigation. As a matter of fact, I would probably leave it there if it wasn’t for the fact that I have small rectangles instead of arrows. Would you happen to know why is this so? Thanks

    Thread Starter hugotiles

    (@hugotiles)

    Hi James,

    Woo support could not come out for a solution for the functions.php code. Instead, they insisted in using css code. So, if it could help someone else, here’s the code to be pasted inside the style.css:

    single-project .nav-prev , .single-project .nav-next { display:none !important; }

    Thank you again.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Removing project navigation at the bottom of the page’ is closed to new replies.