Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1050836
    robinweber1989
    Participant

    Hi Support,

    I would like to add a button (like this for example: [button type=”real” shape=”square” size=”small” href=”#example” title=”Example”]Square Button[/button]) in my custom excerpt field for a specific post. Moreover. Could you help me, since the excerpt does not work when I add the shortcode. Could you provide me with instructions how I can enable this within my child theme?

    Thank you in advance!

    Cheers

    #1050863
    Jade
    Moderator

    Hi Robin,

    Please try to setup a child theme and add this in the functions.php file:

    add_filter('the_excerpt', 'do_shortcode');

    Let us know how it goes.

    #1053942
    robinweber1989
    Participant

    Hi Team,

    Thanks that worked great! I have another question. I’m using ethos and I set my categories to standard style and global content layout in the Customizer. With the global css below I’ve managed to change the size of the post thumbnails and the hover style. This all works great on desktop, but not so much on mobile. Could you provide me the same css changes for mobile?

    Thanks!

    a.entry-thumb {
    padding-bottom: 90%;
    }

    a.entry-thumb:before {
    background-color: rgba(0, 0, 0, 0);
    }

    .blog .x-main .hentry>.entry-featured, .search .x-main .hentry>.entry-featured, .archive .x-main .hentry>.entry-featured {
    width: 22%;
    }

    #1054133
    Thai
    Moderator

    Hi There,

    Please find this CSS:

    .blog .x-main .hentry>.entry-featured, .search .x-main .hentry>.entry-featured, .archive .x-main .hentry>.entry-featured {
    width: 22%;
    }

    And change to this:

    @media (min-width: 768px){
        .blog .x-main .hentry>.entry-featured, 
        .search .x-main .hentry>.entry-featured, 
        .archive .x-main .hentry>.entry-featured {
            width: 24%;
        }
    }

    Hope it helps 🙂

  • <script> jQuery(function($){ $("#no-reply-1050836 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>