Viewing 24 posts - 1 through 24 (of 24 total)
  • Author
    Posts
  • #373186

    hi with special headings i love how it places a nice horizontal line to the right of the heading

    how ever if we center align the text this effect is no long displayed

    How can we have it so it looks something like this

    ————————— Special Header ————————-

    #373206

    Hey codecreative!

    Add this to your custom CSS.

    body .av-special-heading.blockquote .special-heading-border {
      display: block !important;
    }

    If you want to move it up a bit then you can add this.

    top: -20px;
    

    Regards,
    Elliott

    #373594

    hi

    that doesn’t place the line at each side of the text, to the left and right it just placs it underneath you can see from

    http://217.199.187.191/dramirsavage.co.uk/

    Where it says Periodontist and Implant Dentist underneath the slideshow

    Is there anyway to have it float to the left and one to the right in the same way it works when the special heading is just default and left aligned it has a nice line effect to the right of the text

    #373634

    Hey!

    Try adding this as well.

    .av-special-heading-tag {
        background: none repeat scroll 0 0 white !important;
        left: 50% !important;
        position: relative;
        transform: translate(-50%);
        z-index: 100;
        display: inline-block !important;
        float: none !important;
        margin: 0 auto !important;
        padding: 10px !important;
        width: auto !important;
    }

    Cheers!
    Elliott

    #374167

    Hi Elliot

    Still seems to be failing have you seen it working your end?

    #374255

    Hey!

    Send us a link to the page where your using it at so we can see what’s going on.

    Regards,
    Elliott

    #375605

    No problem thank you for your support Elliot its appreciated

    http://www.motcombstreetdental.co.uk/

    You can see under the slide show, where it says

    Welcome to Motcomb Street Dentist Website

    The lines appear to be above and below now after applying the css mentioned

    #375832

    Hey!

    I don’t think its possible by default with the theme, but we can give you a quite complicated workaround:

    Add two separator elements from Avia Layout Builder above your special heading. Go and edit the separator items. Choose the width you ned for each side. For “Top Margin” and “Bottom Margin” choose 0px. Choose no icon obviously.
    After finding both separator elements on your page, you need to add this into Quick CSS:
    For first separator:

    .hr.hr-custom.hr-center.hr-icon-no.avia-builder-el-1.el_after_av_textblock.el_before_av_hr {
    left: -141px;
    top: 46px;
    }
    

    For second separator:

    .hr.hr-custom.hr-center.hr-icon-no.avia-builder-el-2.el_after_av_hr.el_before_av_heading {
    left: 142px;
    top: 22px;
    }
    

    You need to adjust “left” and “top” so it fits for your special heading.

    If you need help for adjusting the separators correctly give us a shout after adding them into your page.

    Hope that helps.

    Cheers!
    Andy

    #841382

    Hi Guys,

    Is there any easy way to do this now with the latest update?

    “How can we have it so it looks something like this

    ————————— Special Header ————————-”

    Thanks,

    #841968

    Hi skynandi,

    Here is some css you can play with

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #842052

    Thank You, Victoria

    How do I set this up in Enfold? Where do I put that CSS code?

    Thank You

    #843303

    Hi,

    Please go to the Theme Settings of Enfold, and you will be there to past the custom CSS

    Best regards,
    Basilis

    #843306

    Thanks, Basilis,

    Can you tell me what is the correct custom CSS code to achieve this:

    ————————— Special Header ————————-

    Thanks

    #844703

    Hi @skynandi,

    Have you tried the CSS in this thread: https://kriesi.at/support/topic/heading-centered-between-lines/#post-594448

    If you need further help, please provide us with a link to the website where you would like to do this.

    Best regards,
    Sarah

    #865302

    Yes I have and it works on desktop, but it’s not responsive and when it shrinks it covers the text, is there a better way to do this?

    Thanks

    Nandor

    #865628

    Hi Nandor,

    Can you show us what you’ve got so far?

    Best regards,
    Victoria

    #865768

    I’ve tried all the codes in this thread and some more from others.

    The simple “CSS line behind text” you have posted earlier works on desktop but when you shrink the page to mobile it brakes up and covers the text.

    The default style “special heading” in the theme is almost there, I just need that element centered with the lines on both sides.

    Thanks in advance,

    This is what I’m going for:
    Screen Shot 2017-10-18 at 9.55.51 AM.png

    #866450

    Hi skynandi,

    Could you please give us a link to your website, we need more context to be able to help you.

    Best regards,
    Victoria

    #866757
    This reply has been marked as private.
    #867304

    Hi skynandi,

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    @media only screen and (min-width: 480px) and (max-width: 767px) {
      .av-special-heading-tag:after {
        content: '';
        width: 30% !important;
    
    }
    .av-special-heading-tag:before {
        content: '';
         width: 30% !important;
    }
    }
    
    
    @media only screen and (max-width: 479px) {
      .av-special-heading-tag:after {
        content: '';
        width: 20% !important;
    
    }
    .av-special-heading-tag:before {
        content: '';
         width: 20% !important;
    }
    }
    .av-special-heading-tag:after {
        content: '';
        width: 40%;
        height: 1px;
        border-bottom: 1px solid #6cc24a;
        position: absolute;
        right: 0;
        top: 45%;
    }
    .av-special-heading-tag:before {
        content: '';
        width: 40%;
        height: 1px;
        border-bottom: 1px solid #6cc24a;
        position: absolute;
        left: 0;
        top: 45%;
    }
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #867651

    Thank you for that, it works.

    #867685

    Hi skynandi,

    Glad we got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #873346

    Exactly what I needed also. Thank you Victoria!

    #873357

    Hi,

    Glad that Victoria helped you. Thanks for using Enfold :)

    Best regards,
    Nikko

Viewing 24 posts - 1 through 24 (of 24 total)
  • The topic ‘Center Align special heading so that lines still show’ is closed to new replies.