Placement of code

  • Author
    Posts
  • #37401
    Pete

    I am using Mantra and so far like what it can do for me.

    I also have mail poet and wanted to add a background to the plain form they provide.

    I have tried putting this code in the custom css but it seem is isnt working or is being stripped out

    <span style="form#form-wysija-html576b1deb2db6c-2 {
    background-image: url("wp-content/uploads/optform_bg.png");
    }">[wysija_form id="2"]</span>

    I have also tried to add it directly to the text area of the page. Still doesnt work..

    Any ideas please

    #37402
    Pete

    oh I actually put this code in the Custom CSS with no change

    form#form-wysija-html576b1deb2db6c-2 {
    background-image: url("wp-content/uploads/2016/06/optform_bg.png");
    }">;
    #37413
    Zed
    Cryout Creations mastermind

    Is the "> at the end supposed to be there?

    If it still doesn’t work after correcting that, try using the absolute url for the image:
    url("http://domain.com/wp-content/uploads/2016/06/optform_bg.png")


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Placement of code’ is closed to new replies.