Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter salmoliv

    (@salmoliv)

    I meant Category and not Post …

    Page1
    -Category1
    -Category2
    Page2

    If I’m at the home level, I want the full menu to be displayed.
    If I’m on my Page1, I want to display in my page a menu with only
    Category1
    Category2

    Thanks

    Thread Starter salmoliv

    (@salmoliv)

    Thanks Esmi,

    First, for those who want to do the same, there is an error in the code. The endif should be <?php endif; ?>

    Then, unfortunately, this doesn’t work as I wish.
    The code seems to be inserted in my ‘News’ page, where I’m displaying the posts. The forum displays, but the post are removed.

    I think I might just give up and create a link to a forum, without trying to integrates it into my website !

    Thanks anyway

    Forum: Installing WordPress
    In reply to: Custom Fields
    Thread Starter salmoliv

    (@salmoliv)

    Ok – resolved.
    There is a ‘Screen Option’ on the top of the screen now.
    Just needed to tick ‘Custom Fields’ …

    salmoliv

    (@salmoliv)

    I’ve got the same problem.
    Was working fine 2 days ago. I suppose my provider made some changes …

    How to change permalinks settings when we don’t have access to the dashboard?

    Thanks

    Forum: Themes and Templates
    In reply to: wp_nav_menu
    Thread Starter salmoliv

    (@salmoliv)

    Hi Chip.

    I’m trying to achieve that menu: https://www.pukkafish.com/projects/chateaurenault/ (which works right now, but because I’ve hack a bit the code !)

    Thread Starter salmoliv

    (@salmoliv)

    Ok, managed to find out what was wrong.
    The primary widget had a search form too …

    I could see it but not enter anything in the searchbox – I guess – because the header image had a higher z-index …

    Thread Starter salmoliv

    (@salmoliv)

    I’ve been trying to use a different method.

    In the functions.php, I’ve added:

    /* Custom searchform */
    function chateaurenault_search_form( $form ) {
    
        $form = '<form role="search" method="get" id="searchform" action="' . home_url( '/' ) . '" >
        <p>
        <input type="text" value="' . get_search_query() . '" name="s" id="s" />
        <input type="submit" id="searchsubmit" value="'. esc_attr__('Search') .'" />
        </p>
        </form>';
    
        return $form;
    }
    
    add_filter( 'get_search_form', 'chateaurenault_search_form' );

    In the header, I hae: <?php chateaurenault_search_form(); ?>

    But I’m receiving an error:
    Warning: Missing argument 1 for chateaurenault_search_form(), …

    Why?
    How do you call a ‘custom’ function?

    Thanks

    Forum: Themes and Templates
    In reply to: wp_nav_menu
    Thread Starter salmoliv

    (@salmoliv)

    It’s a workaround. Thanks.
    I was already aware of that option. I thought we could have a filter in the wp_nav_menu function.
    Maybe in the future release of WP ??

    Forum: Themes and Templates
    In reply to: wp_nav_menu
    Thread Starter salmoliv

    (@salmoliv)

    Ok, maybe my question wasn’t enough clear.

    I know that all the classes come from WP. It comes from the file nav-menu-template.php in wp-includes folder.

    I can modify it to have the result I want but would love to avoid that, as it will be overwritten if I upgrade my WP. If I can change the class and ids from the theme, then I’m ‘safe’.

    I suppose that the most important for me at the moment is to add the class ‘lienmenu’ to the anchor ; and I haven’t been able to do it using filters.

    So, the question is, how to add a class to an anchor (part of a menu / sub-menu)?

    Hope this make more sense now !

    Thanks

    salmoliv

    (@salmoliv)

    I’ve got the same issue.

    Also, if I change the number of tweets from 5 to 7, there are still 5 posts displayed.

    I’ve got WP 2.9.2 and Twitter Tool 2.2.1

Viewing 10 replies - 1 through 10 (of 10 total)