Wordpress top banner to add random post - wordpress

I am thinking of adding a small full width and 200px height a div which contain some random post(it will be just random choosen by wordpress), done by me with image and a small <20 words post title.
How can i do this, is there any plugin for it.
After researching and trying i am not getting anything.
Can some one help me here?

1) Go to widget menu..
2) Add the widget to the home sidebar
http://wordpress.org/plugins/spider-random-post/
3) Edit the index.php code and call the home sidebar to header.php file. (It will remain on all pages).
edit the code and css as per your requirement.

Related

how to use a design without header and sidebar as a wordpress homepage?

I would like to use a page I have already made as the homepage of the wordpress site. It's a design made with bootstrap, and it consists of a full width and full height page that is divided in 4 equal rectangles, obviously flexible. clicking on each one of this rectangles should link to 4 different pages/posts/archives.
The question is: how can I change the main-index file in order to have just that design as my homepage, and not any sidebar or header or footer?
Thank you, I tried in many ways, but no success!
Go to Options -> Reading then select A static page in the homepage settings and choose the page you want to use as homepage.
You may need to define a custom template for this page if you dont want header / sidebar.

Sidebars not displaying in Wordpress theme Mantra and header cropping over advised size

I have installed Mantra as my WP theme, can't find help to this two issues.
1) Sidebars are not showing. I have a child theme with funtions.php and stylesheet.php folders. The theme comes with possibilities for 1-4 columns and sidebars left, right or both. I was explained can't have sidebars in the frontpage or as theme calls it, presentation page. If I could still add them, I would be extremely happy. However, my main issue is, I can't get sidebars to display in my post pages. I removed the view of pages and I'm using Categories instead since my page is news based. The main theme has sidebar php and action as been called into my child theme. Sidebars do exist since I can insert in the footer. It's just sidebars that are not working. I use for choosing where to display the Jetpack widget visibility. I need the sidebars so visitors can navigate my site between categories and want to display other content as well.
2) I have created an image, to the exact size theme advises and as per theme, it will be posted as is if the image has the exact measurements. However, no matter what I do, it does not displays as is and keeps cropping my image in half when I try to submit it.
This may help you to solve sidebar & crop issue
http://wordpress.org/support/theme/mantra

Bxslider Ticker image spacing as a Wordpress plugin

I installed the BxSlider as a plugin for Wordpress and inserted the php script code to show above the footer on all pages.
The images scroll perfectly across the page except I'm trying to reduce the spacing between the images to show more than one image per transition.
To best explain the website shows as follows http://www.harvestoffalyfoodfestival.com/
How and where can I edit the html/css code to make these adjustments.
The slider settings within the plugin 'Slider Margin' doesn't have any effect when entering your option amount? Thanks
You will need to set a width on the bxslider container, as at the moment it's 100%.
Ideally we need to see more code, as this could also be a settings issue within bxslider.
Have you got your js settings for bxslider?

Add widget to the middle of a Wordpress page

I am working on a blog at www.tosreport.com/scripting and might want to adjust where I place certain items such as the shoutbox plug-in on the right hand side of the page. Apparently, the only 'widget areas' are sidebar and footer. Is it possible to place a widget in the body of a page or even in the body of a particular post?
Of course, you just have to register another sidebar widget area:
http://codex.wordpress.org/Function_Reference/register_sidebar
And then, place on index.php or loop.php depends on your theme layout:
Check this code, this is an example of what you need, placing the previous code in the "ad" code:
https://stackoverflow.com/a/7001372/1478479

Making Room for Second Sidebar

I have the screwdriver wordpress theme installed on my site (http://wordpress.org/extend/themes/screwdriver)
I made the necessary changes to my functions.php file, then created a sidebar-custom.php file, and now the new sidebar is showing up in my Wordpress account, but I was told that I now need to create space for the new sidebar in the theme layout.
I am told it takes a lot of layout redesign. Can anyone point me in the right direction on how to accomplish this? I want the newly-added sidebar to appear on the right side of page.
Looking at what I have, I'm assuming that I'll need to extend the width of gray field that shows in the back of my theme, then move the center "plate" where my posts reside, along with the "plates" on the left that hold the widgets. Then, I need to set the coding so that
My issue is, I don't know where to begin doing this. Can someone point me in the right direction?
Am I correct in assuming that this change will need to be made in the index.php file?
Well it could depend on how you registered the sidebar, but...
Go into your theme folder and locate the best place to put it (perhaps at the bottom of header.php ?)
<?php dynamic_sidebar('yoursidebarname'); ?>
Refresh your site, find the CSS selector for the new sidebar, and modify style.css accordingly - you might want to float it to the right and resize the content area.
I'm not familiar with the Screwdriver theme so this may be totally wrong.

Resources