• Resolved Diogenes

    (@matador9)


    Hi.

    I have created a post list with three columns (one post in each column) with WP Post Show, but I would like the last column to be hidden in the mobile version.

    Is this possible?

    I would appreciate the help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Elvin

    (@ejcabquina)

    Hi there,

    It’s possible with custom CSS.

    Try adding this:

    @media(max-width:767px){
    section.wp-show-posts .wp-show-posts-single:last-child {
        display: none;
    }
    }
    Thread Starter Diogenes

    (@matador9)

    Hi Elvin.

    Unfortunately it did not work. I’ve tried it before. I even added !important and it didn’t work either.

    Here is the test page, in case you want to take a look: https://bit.ly/2TiWFld
    It is added at the end, in the related post section. I added it with a generatepress hook on the pages.

    • This reply was modified 3 years, 8 months ago by Diogenes.
    Plugin Support Elvin

    (@ejcabquina)

    Hi there,

    I don’t see the code being applied.

    Can you try temporarily disabling the site’s caching?

    Also, can you share the settings you have for the Hook element? (code content, display rule, hook)

    Let us know.

    Thread Starter Diogenes

    (@matador9)

    Hi Elvin.

    I already disable the cache.

    Here is a capture of the hook content:

    https://imgfz.com/i/ZhycSDm.png

    The display rule is that it is shown in all posts.

    Please let me know when you are done to enable the cache.

    Thread Starter Diogenes

    (@matador9)

    I solved it using: :last-of-type
    The code would look like this:

    @media(max-width:767px){
    section.wp-show-posts .wp-show-posts-single:last-of-type {
        display: none;
    }
    }

    Thanks for the help.
    Greetings.

    Plugin Support Elvin

    (@ejcabquina)

    Strange. It was working on my sandbox site.

    Nice one. Glad you got it resolved. ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Hide last column on mobiles’ is closed to new replies.