Jump to content
Sign in to follow this  
smile9381

Using hooks to add feature slider before page content

Recommended Posts

smile9381

I'm familiar with hooks, but I'm not sure what the PHP should look like to call a particular set of features. On the homepage only, I would like the feature slider to be before the page content (so the sidebar is to the left of the slider). The category for my the feature set for the homepage is "Homepage".

Share this post


Link to post
Share on other sites
kastelic

Is the home page also your blog page? By the way, the feature slider doesn't go in the main content area, it is always full-width.

Share this post


Link to post
Share on other sites
smile9381

No, I set the home page to be a static page. I understand that the feature slider doesn't go in the main content area. I'm asking whether I can move it there using hooks (and CSS restyling, of course).

Share this post


Link to post
Share on other sites
smile9381

Sorry... that sounded a bit short and rude. Didn't mean to be!

Share this post


Link to post
Share on other sites
catrina

If the feature slider is only going to be displayed in the main content area on one page, it's possible with CSS. The feature slider's width will have to be reduced in order to accommodate the sidebar on the left.


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
smile9381

I tried adjusting the CSS to do that, but the sidebar was in a div with the main content, so even when I floated the slider right, the sidebar didn't pop up because slider+main content were full width. I will have something below the slider (no text, but a series of post thumbnails from various categories) hooked in (or before/after) the main content area.

Share this post


Link to post
Share on other sites
Kate

You can pull the sidebar up with a negative margin. It's not an "ideal" solution, but one we usually cite.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×