Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1448476

    Hi Enfold Team,
    We are looking to create a custom post. I’ve gotten pretty far in matching to this:
    https://welstestdev.wpenginepowered.com/wp-content/uploads/2024/06/MadeKnown-Post-Mockup-v1_06-03-24.pdf

    My post with ALB and custom CSS on test site: See private

    I’m struggling in two areas:
    1 – The content(color section) overflows the width so I added width: 70% to Quick CSS which matches Enfold General Layout. Still, the right sidebar bumps to the bottom instead. I’ve tried width: auto and no difference.

    2 – The PDF view has the top left corner of the color section inverted. Not sure what to do there as what I’ve tried failed. Same with the :before for that tab style for bottom corner of the tab.

    Your help is appreciated. I’m close but not there yet.
    Last. Is there a better approach to this that you’d suggest? The goal is for each of the 5 categories to use the same layout but a different color scheme. I was going to create one blog post for each category that they could duplicate. Any direction or critique of my approach is welcome. Trying to push the envelope so that blog posts don’t look so generic.
    Thank you!

    #1448531

    Hey Julie,
    Thank you for the link to your site, but I can’t login I get an error: undefined please check.
    1: Color sections are full width elements so the sidebar will always show below it, try using a column instead.
    2: the border-bottom-right-radius doesn’t support negative values, perhaps an easier way will be to use an image for the corner like this:
    corner transparent
    this corner has a transparent background and you can use white text over it.

    Best regards,
    Mike

    #1448540

    Hi Mike,
    Thanks for your response and idea. Sometimes the obvious (color section 100%) smacks you right in the face when too close to details. I’ll try the image versus CSS approach. Thank you for that!

    Credentials refreshed. Ref. previous private info again.

    Any feedback on…
    “Last. Is there a better approach to this that you’d suggest? The goal is for each of the 5 categories to use the same layout but a different color scheme. I was going to create one blog post for each category that they could duplicate. Any direction or critique of my approach is welcome. Trying to push the envelope so that blog posts don’t look so generic.”

    #1448569

    Hi,
    I would recommend adding the categories as a class to the single posts, try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    add_filter('body_class','add_category_to_single');
      function add_category_to_single($classes) {
        if (is_single() ) {
          global $post;
          foreach((get_the_category($post->ID)) as $category) {
            $classes[] = $category->category_nicename;
          }
        }
        return $classes;
      }

    This will add the categories as a body class, so for example if your post belongs to the categories News, Personal, Uncategorized
    Enfold Support 6029
    the body will have these classes:
    Enfold Support 6031
    So if you wanted to use CSS to target this it would look like:

    #top.news.personal.uncategorized {
    /* your color here */
    }

    You can make this would for only one category if you wish, my example just happened to have three.

    Best regards,
    Mike

    #1449442
    This reply has been marked as private.
    #1449543

    Hi,
    Try changing your border-radius so the top left side is zero:
    border-radius: 0 35px 35px 35px !important;
    then for the image make left:
    left: -10px !important;
    for this:
    Enfold Support 6081

    Best regards,
    Mike

    #1449610
    This reply has been marked as private.
    #1450038

    Hi,

    Thank you for the update.

    It should be -10px. You forgot to include the unit. Please replace the css rule with the following code:

    .post-border-jd::before {
        content: url(//welstestdev.wpenginepowered.com/wp-content/uploads/2024/06/blogTabPerspective.png);
        position: relative;
        top: -62px !important;
        left: -10px;
    }
    

    Best regards,
    Ismael

    #1450133

    Good eye! Thank you. Everything is beautiful now So appreciative for Enfold support!
    Close ticket.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Blog layout with sidebar’ is closed to new replies.