How can modify post-layout after clicking on it?

  • Anonymous


    first af all, thanks for this great theme.

    I have a blog with 3 columns =>

    When I open a post to read it, I would like to see the post in a space bigger than the home page, for example in the classic Graphene Layout with 2 columns enlarging the space dedicated to a single post.


    Syahir Hakim


    If you’re using a child theme, add this into the child theme’s functions.php file:

    function graphene_modify_layout(){
    if ( is_singular() ){
    global $graphene_settings;
    $graphene_settings['column_mode'] = 'two-col-left';
    add_action( 'template_redirect', 'graphene_modify_layout' );

    Untested, but it should work.

    Emanuele Properzi


    Thanks Syahir, I copied the code you suggested me in the functions.php but I receive the following error:

    Parse error: syntax error, unexpected ‘<‘ in /web/htdocs/ on line 254

    p.s.:To be honest I don’t know if I’m using child theme, I configured in “Graphene options”/”Display”/”Column Options” yhe layout with 3 columns



    First do this:

    After that create functions.php and copy/paste Syahir’s code in it.

Viewing 4 posts - 1 through 4 (of 4 total)

  • You must be logged in to reply to this topic.
Graphene Themes Forum