Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • Ch1vpH Friend
    #1000020

    Hi there,

    I have an issue with the ‘divided-side.png’ which is a the ——–heart logo——– on the demo site.

    I am tying to display this under a heading, in a custom module I setup. But at the moment it is not responsive on smaller screens – because I have used an image file & not the ::after I see in the ‘elements’ code in ‘chrome inspect’.

    I have attached two images….one that I’m trying to replicate and the other is my attempt to do this.

    Please advise.

    Thanks,

    Chris H.


    1. my-attempt-setup
    2. the-correct-way-i-need
    Pankaj Sharma Moderator
    #1000099

    Hi
    what did u changed in module?
    In demo the image class is defined for the ACM module.
    This is the code used

    .section .section-intro:after {
        background: url(/templates/ja_charity/images/ico/divide-side.png) no-repeat center bottom;
        height: 13px;
        position: absolute;
        left: 0;
        right: 0;
        bottom: -7px;
        content: "";
    }

    On your site the module is different then the demo site.

    Ch1vpH Friend
    #1000261

    Hi there – Understood so I cannot use this above code if it is not ACM module.

    So I still need to have this image I created under a title in my own custom module so that it responds to different size screens is this possible?

    enter image description here

    Thanks

    Pankaj Sharma Moderator
    #1000270

    Hi
    You can apply the after class on your custom class u are using .

    .section .section-intro:after {
        background: url(/templates/ja_charity/images/ico/divide-side.png) no-repeat center bottom;
        height: 13px;
        position: absolute;
        left: 0;
        right: 0;
        bottom: -7px;
        content: "";
    }

    In above code
    .section .section-intro
    Is the name of class.

    Ch1vpH Friend
    #1000275

    Hi there – I’m v sorry I have no idea where to put this code exactly in my custom mod or in a custom.css.

    Thanks

    Pankaj Sharma Moderator
    #1000718

    Hi
    Add below code in custom.css file
    Change the image path with your image and the classes name with your custom class name

    #section-87 .section .section-intro:after {
        background: url(/templates/ja_charity/images/ico/divide-side.png) no-repeat center bottom;
        height: 13px;
        position: absolute;
        left: 0;
        right: 0;
        bottom: -7px;
        content: "";
    }

    On your site i can see the code is working fine : http://prntscr.com/dt7qo6

    Ch1vpH Friend
    #1000927

    Hi there,

    So I have added in the code above with my section number 142.

    But I still don’t know what to do now, as it doesn’t show, do I not need to add anything in the module??

    Thanks

    Pankaj Sharma Moderator
    #1000942

    Hi
    To be frank I am not able to understand the problem because the image is showing on your site now as u needed using the after class.
    Kindly provide the details using a screenshot and illustrate the issue inside the screenshot.

    Ch1vpH Friend
    #1000958

    Sorry I was supposed to add a screen shot to that last message!!

    So just to confirm, my query is to do with a separate module that I setup…NOT the JA modules on the template – as I see they are all working too & that is not an issue.

    I am only trying to setup this hoz-line image/code in a ‘new custom module’ as per screen shots in first post….I’ve also added a new screenshot below with illustrate on the module in question.

    Hope this make sense in the new screen shot.

    Thanks.


    1. Untitled-1
    Pankaj Sharma Moderator
    #1000963

    Hi
    Use below code in custom.css file

    #section-142 .custom .mod-title:after {
        background: url(/templates/ja_charity/images/ico/divide-side.png) no-repeat center bottom;
        height: 50px;
        position: absolute;
        left: 0;
        right: 0;
        content: "";
    }
    Ch1vpH Friend
    #1000979

    Nice one this has worked! I nearly had it myself when trying various combinations but I stupidly didn’t add on the .custom as I was unsure about the order and what text went before the background url.

    One other quick query is ”How to make it NOT the full length of the screen”.

    Sorry to ask again but this has been bugging me for ages and just want to get it right!

    Pankaj Sharma Moderator
    #1000986

    Hi
    You can add width style in the above code and add a max width for image.

Viewing 12 posts - 1 through 12 (of 12 total)

This topic contains 11 replies, has 2 voices, and was last updated by  Pankaj Sharma 7 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum