Adding the homepage panes between contents.
-
Hi,
Thanks for Graphene it is really great.
I am working on it, but i came across a problem. I would like the latest post in homepage panes to show between two kind of contents. Basically below the slideshow and on top the videos. I hope that makes sense.:) . I tried to manipulate the code that takes the panes on top , but it did not worked.
Your help in this issue its really apresciated.
Thanks a lot
Luci
Mod
Quote:I tried to manipulate the code that takes the panes on top , but it did not worked.Please don’t edit theme files. You will lose your changes at the next update. Use theme options or a child theme instead.
Please post a link to your site, so we can take a look. We need to know how you are adding the videos. This is probably easily achieved using an action hook widget area.
If you are using a child theme, you can easily do this with a custom function. You need to write a function which removes homepage pane from graphene_bottom_content hook (or a similar hook. I’m on mobile now. So can’t tell you the exact hook name) and then adds it to graphene_top_content (or a similar hook). Then add that function to template_redirect filter.
Search in the forum. Syahir already answered same kind of question before.
Try adding this to your child theme’s
functions.php
file.function graphene_move_homepage_panes(){
remove_action( 'graphene_bottom_content', 'graphene_display_homepage_panes' );
add_action( 'graphene_top_content', 'graphene_display_homepage_panes' );
}
add_action( 'template_redirect', 'graphene_move_homepage_panes' );(If your child theme is empty, don’t forget to add
<?php
at the beginning of the code and close with?>
Hi Keneth and Prasanna,
Thanks for your quick reply. No worries Keneth , i am using a child theme of Graphene, here is a link to my website http://www.afterhoursfor.me/. I am still working on it , but basically what i want to do is a section of videos below the posts area. It will be a row of videos 3-4.
Prasana , I tried to do it with a custom function, but it will take the homepage panes top or bottom, not in the middle. I hope i’m clear enough 🙂 .
I will try to use an action hook widget area.
Thanks a lot guys,
Hi guys,
Thanks for your help. I solved the problem with action hooks. But now I have some more issues.
1. In the homepage panes the text will not wrap around the image, it shows right in the post page but not in the homepage panes
2. I would like to get rid of the block buttton background and keep only the text (read more)
3. I would like to add the row of the videos in the homepage panes . I tried with action hook widget after the content but it will separate the videos in two colums as the posts. but i want them to show 4 in a row. Is there any way that i can do that?
This is for now :)).
Thanks thanks a lot for your help
Admin
Quote:In the homepage panes the text will not wrap around the image, it shows right in the post page but not in the homepage panesThat’s the intended style. The image in the homepage panes should take the entire width of the homepage pane.
Quote:I would like to get rid of the block buttton background and keep only the text (read more).homepage_panes .block-button {
background: none;
border: none;
}Quote:I would like to add the row of the videos in the homepage panes . I tried with action hook widget after the content but it will separate the videos in two colums as the posts. but i want them to show 4 in a row. Is there any way that i can do that?There is, but it’s much easier to do it the way you’ve done it now.
Admin
Hurm.. if the row of videos has fixed height, you can always add a big bottom padding for the homepage panes container, then give a negative top margin to the videos container so that the videos appear to be inside the homepage pane container when in fact it’s not.
Thanks Syahir,
That helped a lot, But now i have another issue. I am using your theme for another website. http://ahamomentinc.com/dir/.
I would like to add a gray background in the footer section or better in the bottom sidebar area. I tried to add it with css using fiirefox firebug to find the classes but it will not work.
Also I would like to add a background image to the menu but i couldnt find the right classes to do that. One more issue would be , i would like to get rid of the footer image at the bottom of the website.
Thanks so much
- 1
- 2
- You must be logged in to reply to this topic.