• Resolved Paul

    (@rhododendron)


    I need to add a row after the main Menu to add a HTML form.

    How do I create that area?

Viewing 15 replies - 1 through 15 (of 16 total)
  • hello! I think there Might create a sidebar and then place a widget, o widget text and put the html code

    Thread Starter Paul

    (@rhododendron)

    I think in this case sidebar will not help. I need to create a full width row to have the form.

    You’ll have to go into the html and create a div where you need it and then apply some css..

    Thread Starter Paul

    (@rhododendron)

    I am a layman here. Can somebody help me with the pointers or elements I need to use.

    but you can put a horizontal sidebar, 100% of the width

    With “main menu” do you mean the topbar or header menu? You would edit header.php with a child theme and locate the menus, here for example:

    <?php if ( has_nav_menu('topbar') ): ?>

    Thread Starter Paul

    (@rhododendron)

    I do not want to insert anything in the Menu.
    I want to make a row just after the main menu in the header.

    My intention is to put an attachment form there for inviting user to send their posts as docs or uploading pictures for our Photogallery.

    I hope I could make the requirement clear.

    You would then add it after the menu ends:

    </nav><!--/#nav-topbar-->

    Or

    </nav><!--/#nav-header-->

    Depending on which menu you mean.

    Thread Starter Paul

    (@rhododendron)

    And where will I place my HTML Form Code. That must be in Function.php right?

    Can you please help me with thefunction entry?

    Thread Starter Paul

    (@rhododendron)

    Well I am unable to make this

    Later I thought I will add the form after the slider

    I tried this

    add_filter( 'flexslider-featured', 'my_extras_after_slider' );
    function my_extras_after_slider($html) {
        $myextrahtml = '[contact-form-7 id="214" title="Attachment form"]';
        return $html . $myextrahtml;
    }

    But not working

    In index.php, locate:

    <?php get_template_part('inc/featured'); ?>

    After it, add:

    <?php echo do_shortcode('[contact-form-7 id="214" title="Attachment form"]'); ?>

    Thread Starter Paul

    (@rhododendron)

    Excellent.

    Thank you so much

    Thread Starter Paul

    (@rhododendron)

    I have one small question here.

    Can I do it in categories?

    Yup, it would then be in archive.php.

    Add it right after or before where it says:

    <div class="notebox">
    <?php echo category_description(); ?>
    </div>

    Hello Alex, I’d like to be able to do the same. Yet I want to create this space to display a certain category of posts.

    For example, I want to show ‘tip of the day’ post in that space. I’ve tried doing it, but it seems like the category im specifying shows up in the div I’ve designated for it, as well as the normal post flow.

    I’d like the posts in that category to only display in that div box. Also, I’d like that div to dis play 1 post at a time and not sided next to another in the same category. As the most recent post in the theme is formatted.

    Hope you get an idea of what I’m asking.

    Waiting for your reply,

    Thanks.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Need to add a HTML form after Main menu’ is closed to new replies.