Image in Front Page Intro Content

  • Author
    Posts
  • #107773
    alcinacortez
    Member

    Hello!
    Is it possible to have an image (logo) in the Front Page Intro Content?
    It says some html is accepted but Im not managing to include an image via html. Nothing shows up.

    Thanks in advance,

    #107921
    thelukemcdonald
    Theme Author

    Image tags are not currently allowed in the intro content.

    That said, you maybe be able to work around this by adding a span tag with a class and add the logo as a background image to that element using some custom CSS. You would need to ensure the width and height are set to the logo dimensions.

    For example, your span tag would look like this:

    <span class="intro-content-logo"></span>

    The CSS for this would look like:

    .intro-content-logo {
      background: url(https://placehold.it/200x100) no-repeat;
      width: 200px;
      height: 100px;
      display: block;
    }
    #107929
    alcinacortez
    Member
    Original poster

    Hello,
    Thank you for reply. I decied to do something similar with the intro-content div via css but your solution is cleaner so ill use this instead.

    Regards,

    #107930
    thelukemcdonald
    Theme Author

    Excellent, glad to hear that will work for you. Thanks for understanding.

  • The topic ‘Image in Front Page Intro Content’ is closed to new replies.