Return to Support

How can modify post-layout after clicking on it?

Home Forums Graphene WordPress theme Support How can modify post-layout after clicking on it?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1974
    Anonymous

    first af all, thanks for this great theme.

    I have a blog with 3 columns => http://www.scrittorevincente.com/

    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.

    #19580
    Syahir Hakim
    Keymaster

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

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

    #19581

    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/www.scrittorevincente.com/home/wp-content/themes/graphene/functions.php 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

    #19582
    Luko
    Member

    First do this:

    https://forum.graphene-theme.com/graphene-support/how-to-modify-the-theme-using-a-child-theme

    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.