Title: can&#8217;t insert shortcode to the code
Last modified: May 10, 2021

---

# can’t insert shortcode to the code

 *  Resolved [mastaliyev](https://wordpress.org/support/users/mastaliyev/)
 * (@mastaliyev)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/cant-insert-shortcode-to-the-code/)
 * 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 5 years, 1 month ago by [mastaliyev](https://wordpress.org/support/users/mastaliyev/).
    -  This topic was modified 5 years, 1 month ago by [mastaliyev](https://wordpress.org/support/users/mastaliyev/).
    -  This topic was modified 5 years, 1 month ago by [mastaliyev](https://wordpress.org/support/users/mastaliyev/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcant-insert-shortcode-to-the-code%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Arnan](https://wordpress.org/support/users/adegans/)
 * (@adegans)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/cant-insert-shortcode-to-the-code/#post-14421089)
 * 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](https://wordpress.org/support/users/mastaliyev/)
 * (@mastaliyev)
 * [5 years ago](https://wordpress.org/support/topic/cant-insert-shortcode-to-the-code/#post-14423340)
 * 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.

 * ![](https://ps.w.org/adrotate/assets/icon-256x256.gif?rev=3117289)
 * [AdRotate Banner Manager](https://wordpress.org/plugins/adrotate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/adrotate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/adrotate/)
 * [Active Topics](https://wordpress.org/support/plugin/adrotate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/adrotate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/adrotate/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [mastaliyev](https://wordpress.org/support/users/mastaliyev/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/cant-insert-shortcode-to-the-code/#post-14423340)
 * Status: resolved