Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #428959

    Hey.

    I am about to change the theme on this website to Enfold.
    http://www.airlinestaffrates.com

    As you can see here I have added a Hotel search box above the posts.
    Is there a way that I can do that in Enfold?

    http://www.airlinestaffrates.com/roatan-honduras-clarion-suites-roatan-at-pineapple/
    http://www.airlinestaffrates.com/category/argentina/

    Thanks
    Charlotte

    #429369

    Hi Charlotte!

    That should be possible yes, you could use the Code Block element for the booking code and the Blog Posts element for the blog posts.

    Regards,
    Rikard

    #429387

    Thanks but I want the hotel search box to be on top of all category entries and on all blog post entries

    What shall I do then? I can´t manually do that for every post…

    Charlotte

    #430072

    Hi!

    With the blog posts element you select what categories you want to display, so all blog posts from that category will be displayed. If you want to include it in the regular categories/tag page we can help you out with that once you get there.

    Best regards,
    Rikard

    #430361

    Ok, thanks Rikard. I will get back to you once it is published…

    #430365

    Hey!

    We will keep the thread open and will wait to hear from you :)

    Regards,
    Yigit

    #430678
    This reply has been marked as private.
    #431780

    Hey!

    If you want the custom code to appear on the category and single pages, edit archives.php and single.php file. Place it above the loop:

    get_template_part( 'includes/loop', 'index' );
    

    Cheers!
    Ismael

    #431785

    Hi Ismael,

    I want that a widget a created should appear above category posts and single posts.

    What do mean by custom code? The widget i want to appear is named Booking

    Thanks
    Charlotte

    #432272

    Hey!

    Please add following code above the line in Ismael’s post

    dynamic_sidebar( 'Booking' );

    Best regards,
    Yigit

    #433371

    Hey,

    Thanks for your reply. The code is now displayed over the post and widget area.
    But I just want the code to be displayed over the posts.

    What shall I add?

    Thanks
    Charlotte

    #433406

    Hi!

    Can you please post the link to your page where we can see the issue please?

    Regards,
    Yigit

    #433412

    Hi Yigit,

    I don´t want to add the code again as it does not look good.

    http://www.airlinestaffrates.com/the-warwick-fiji-resort-and-spa-fiji/
    You see that Booking search box on the widget area, when I add the code that the search box stretches over the post and the widget area, it should only be over the posts.

    A good feature in the forum: being able to add a file, photo

    Thanks
    Charlotte

    #433927

    Hey!

    You can use imgur or dropbox if you want to post a screenshot. You can limit the size of the widget by placing it inside a container with a custom class attribute. Something like this:

    <div class="limit-width">
    WIDGET HERE
    </div>

    Add the css code in the Quick CSS Field:

    .limit-width {
    width: 50%;
    }

    If you’re not sure what to do, please hire a freelance developer to help you add a custom widget above the archive pages.

    Cheers!
    Ismael

    #435628

    Ok, thanks.

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Adding code above category posts & posts’ is closed to new replies.