• Resolved mastaliyev

    (@mastaliyev)


    hi
    i’ve background banner for my website it’s working with direct banner normally. i can’t insert there shortcode , so it shows banners from AdRotate. i insert php version of shortcode there, but it’s not helping. pls help to fix this problem.

    Original code:

    background: #fff;
    	}
    	.td-header-wrap .td-a-rec.td-a-rec-id-custom_ad_2 {
            margin-top: 10px;
    	}
    	#sticky_ad_bar{margin-bottom: 4px;cursor:pointer}
    	#link{cursor:pointer}
    	body {
    		background: url(https://banker.az/wp-content/uploads/2021/05/151-751-banner-2-banker.jpg),url(https://banker.az/wp-content/uploads/2021/05/151-751.jpg);
    		background-repeat: no-repeat;
    		background-position: right top,left top;
    		background-attachment: fixed;
            background-size: auto 100%;*/
            background: none;
    	}

    How i changed it and it’s not working:

    background: #fff;
    	}
    	.td-header-wrap .td-a-rec.td-a-rec-id-custom_ad_2 {
            margin-top: 10px;
    	}
    	#sticky_ad_bar{margin-bottom: 4px;cursor:pointer}
    	#link{cursor:pointer}
    	body {
    		background: <?php echo adrotate_ad(60); ?>,<?php echo adrotate_ad(60); ?>);
    		background-repeat: no-repeat;
    		background-position: right top,left top;
    		background-attachment: fixed;
            background-size: auto 100%;*/
            background: none;
    • This topic was modified 3 years, 6 months ago by mastaliyev.
    • This topic was modified 3 years, 6 months ago by mastaliyev.
    • This topic was modified 3 years, 6 months ago by mastaliyev.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Arnan de Gans

    (@adegans)

    There are no shortcodes in that CSS.
    But the PHP Snippets you’ve added surely won’t do what you expect.
    AdRotate ads output much more than just the image path/url. So that will not work.

    Thread Starter mastaliyev

    (@mastaliyev)

    thank you for response.
    is there any way to put AdRotate shortcode for background banner change? if not with that CSS, how can i do that?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘can’t insert shortcode to the code’ is closed to new replies.