Support » Plugin: Genesis Columns Advanced » Columns not appearing side-by-side on mobile

  • Resolved drdrerde

    (@drdrerde)


    Hi Mr.Nick Diego and plugin users,

    I am brand new to WordPress. I’m using the theme “Starte” Version 1.0.8
    from munirkamal. I have a problem viewing my website on mobile devices. I want the columns to stay lined up next to each other even on a mobile device. What happens, though, is that the left column is stacked on top of the right one. I understand that a mobile screen isn’t as wide, so maybe there’s no good solution. Ideally users of my website would be able to turn their screen horizontally to view both website columns next to each other.

    The post “second test post” has the columns in question. The post “first test post” contains a picture of what it looks like on my mobile device (safari on on iphone 5c).

    I saw this topic “https://wordpress.org/support/topic/keep-columns-on-mobile/” but wasn’t sure if this is the same issue as I’m having.

    Thanks for making this plugin,

    sincerely,
    Eric

    EXTRA INFO: The purpose of my website is putting a text and a translation of that text side-by-side. I’ve added the widget “sides matter” so that I can add explanations of translations in the right side bar. I don’t think the widget is affecting the columns, because the columns behave the same with and without the widget activated. I have no other plugins activated.
    https://de.wordpress.org/plugins/side-matter/

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Nick Diego

    (@ndiego)

    Hi Eric,

    This is the intended behavior for the plugin. The formatting is mobile responsive so on smaller screens, the columns collapse into one column. You can disable this functionality by following the below steps.

    Copy the CSS code here into the bottom of your theme’s style.css file. This basically adds all of the column styling to your theme so you can customize as needed. After copying it over, delete the Media Query section. This is what enables mobile styling.

    For the last step, you need to disable to plugin’s own styling so your customized styling takes over. To do so add the following to the bottom of your theme’s functions.php file.

    add_filter( 'gca_load_column_styles', '__return_false' );

    Then you should be good to go.

    Best,
    Nick

    • This reply was modified 1 year, 5 months ago by  Nick Diego.

    Thanks, Nick, that worked well and it boosted my confidence with a baby step into the world of CSS.

    Update: I’ve noticed this fix doesn’t work with all themes, but it works with some of them. For example, of the wordpress “twenty” themes it works with 2010,2011,2012 and 2013 but not with any 2014,2015,2016 or 2017. For some of those themes (like 2017), this fix here even causes the columns to collapse into one on a non-mobile screen (without this fix, this column plugin worked fine on 2017). It’s not a big deal because I can just stick with what works, but I figured I’d let you know.

    Plugin Author Nick Diego

    (@ndiego)

    Hi Eric,

    Just to confirm, you added the above PHP to each theme’s functions.php files and the linked CSS to each theme’s style.css files, correct?

    I just tested in 2017 and it worked as expected.

    Thanks,
    Nick

    Nick, you’re right (of course!). I tried it again with 2017 and it worked.

    Must have been human (me) error
    (I had copied both of these codes into a single text document for easy access. I suspect that whenever I was grabbing the CSS code from this doc., I was copying the plugin-style-disabling line IN ADDITION TO the CSS code)

    Thanks again.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Columns not appearing side-by-side on mobile’ is closed to new replies.