[Support request] Adding Anchor Ad on All pages on Mobile

Home Forums Support [Support request] Adding Anchor Ad on All pages on Mobile

Home Forums Support Adding Anchor Ad on All pages on Mobile

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1475902
    Mouse

    Hi there I need to Display the Bottom Sticky Anchor Ad on all the pages on mobile devices. Please let me know how do I do this?

    #1476791
    David
    Staff
    Customer Support

    Hi there,

    you can use a Hook Element to add your Script to the foot of your site:

    https://docs.generatepress.com/article/hooks-element-overview/

    To make it only display on mobile and make it sticky would be related to the AdCode/Plugin you’re using.

    #1477952
    Mouse

    Yes I understand that but I want a hook at the bottom of the post page that is sticky and has a closing button.

    Want this at the bottom.

    #1477993
    Mouse

    Currently, I am implementing this on one of the pages. … ” /privacy-policy ” as a test.

    with css

    .sticky-footer-element {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: #fff;
    }

    /* Add body bottom margin the height of sticky element */

    @media
    (max-width: 768px) {
    body {
    margin-bottom: 100px;
    }
    }

    But I don’t want it to show on desktop. And I want a close button on it.

    #1478026
    David
    Staff
    Customer Support

    That would require custom development or a plugin to do that. You will also need to check whether your ad provider permits sticky adverts as these may be forbidden.

    #1478039
    Mouse

    Can you help me do it without a plugin?
    I want the banner to show on mobile devices only.

    #1478041
    David
    Staff
    Customer Support

    Unfortunately that is out of the scope of our support – it would require custom development to do that.

    #1478164
    Mouse

    Alright. Well thanks alot for all the help.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.