Adding the homepage panes between contents.

  • Luci

    #5064

    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

    Kenneth John Odle

    #30547
    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.

    Anonymous

    #30548

    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.

    Anonymous

    #30550

    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 ?>

    Luci

    #30551

    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,

    Luci

    #30552

    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

    http://www.afterhoursfor.me/.

    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

    Syahir Hakim

    #30553
    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 panes

    That’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.

    Luci

    #30554

    HI Syahir,

    Thanks a lot for your quick response and also for the wonderful theme.

    Would you mind to help me understand how to put both videos and posts in the same background. In my design it is that way , and the client likes it that way.

    Thanks again

    Admin

    Syahir Hakim

    #30555

    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.

    Luci

    #30556

    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

Viewing 10 posts - 1 through 10 (of 13 total)

You must be logged in to reply to this topic.

Do NOT follow this link or you will be banned from the site!