-
AuthorPosts
-
April 15, 2015 at 2:59 pm #428959
Hey.
I am about to change the theme on this website to Enfold.
http://www.airlinestaffrates.comAs 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
CharlotteApril 16, 2015 at 7:42 am #429369Hi 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,
RikardApril 16, 2015 at 8:14 am #429387Thanks 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
April 17, 2015 at 4:53 am #430072Hi!
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,
RikardApril 17, 2015 at 4:08 pm #430361Ok, thanks Rikard. I will get back to you once it is published…
April 17, 2015 at 4:12 pm #430365April 18, 2015 at 8:56 am #430678This reply has been marked as private.April 21, 2015 at 7:07 am #431780Hey!
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!
IsmaelApril 21, 2015 at 7:19 am #431785Hi 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
CharlotteApril 21, 2015 at 7:06 pm #432272Hey!
Please add following code above the line in Ismael’s post
dynamic_sidebar( 'Booking' );
Best regards,
YigitApril 23, 2015 at 11:24 am #433371Hey,
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
CharlotteApril 23, 2015 at 12:41 pm #433406Hi!
Can you please post the link to your page where we can see the issue please?
Regards,
YigitApril 23, 2015 at 12:48 pm #433412Hi 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
CharlotteApril 24, 2015 at 8:15 am #433927Hey!
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!
IsmaelApril 27, 2015 at 9:17 pm #435628Ok, thanks.
-
AuthorPosts
- The topic ‘Adding code above category posts & posts’ is closed to new replies.