Title: Adding raw html
Last modified: August 21, 2016

---

# Adding raw html

 *  Resolved [Oxygen89](https://wordpress.org/support/users/oxygen89/)
 * (@oxygen89)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/adding-raw-html/)
 * Hi all,
 * I’ve raw html like this to display the images in a slider form :
    <div style=”
   margin:20px; width:934px; “> <marquee > <img src=”link_here”> </marquee> </div
   >
 * My requirement is to add slider above the featured images on home page. So, if
   i add this raw html inside a variable using this [snippet](http://www.themesandco.com/snippet/add-content-above-featured-pages/),
   is it a really good practice?
 * I’ve tried adding small slider using plugins, but, none worked great for me. 
   Could anyone suggest a solution to this.
 * [Site](http://thakuralelectric.com/)
 * For reference, [see this image](http://imgur.com/BVa0mfv)(it will be moving)
 * Thanks

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/adding-raw-html/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/adding-raw-html/page/2/?output_format=md)

 *  [ElectricFeet](https://wordpress.org/support/users/electricfeet/)
 * (@electricfeet)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/adding-raw-html/#post-5085311)
 * If you don’t like Customizr’s slider, then Metaslider is a good option. There
   is also a pro version (which I don’t have) which offers even more functions.
 *  Thread Starter [Oxygen89](https://wordpress.org/support/users/oxygen89/)
 * (@oxygen89)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/adding-raw-html/#post-5085322)
 * [@electricfeet](https://wordpress.org/support/users/electricfeet/): I’ve two 
   questions. Firstly, is marquee an example of meta slider?
 * Secondly, Is it a good practice to include raw html inside a php variable using
   snippet for adding content above featured images?
 * Plus,actually, my requirement cannot be fulfilled by using Customizr slider as
   the image size is very small (basically a logo of partners).
 * Thanks
 *  [ElectricFeet](https://wordpress.org/support/users/electricfeet/)
 * (@electricfeet)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/adding-raw-html/#post-5085373)
 * No, I don’t think Metaslider does marquee. [Flexslider2](http://flexslider.woothemes.com/basic-carousel.html)
   seems to, but it’s not in the WP repository, so I don’t know how good it is (
   I’ve never used it). But it’s from Woothemes, so it should be pretty reliable.
 * [Royal slider](http://dimsemenov.com/plugins/royal-slider/) gets good reviews,
   but again it’s not in the WP repo and it’s also a paid plugin. They don’t do 
   marquee, but they do an iOS-style “Gallery with Visible Nearby Images”.
 * Here’s a codepen that makes the underlying bootstrap carousel (of Customizr) 
   do what you want: [http://codepen.io/szymipl/pen/nLdiI](http://codepen.io/szymipl/pen/nLdiI)
   but I’ve no idea how good the code is. It requires javascript—about which I know
   very little— so I cannot help, I’m afraid.
 * Re the good practice: not often, but sometimes 🙂 Not if the text is changing—
   it’s not the sort of thing you’d give an editor, for example. But if it’s something
   like a tagline that wouldn’t generally change, it’s OK. If your setup doesn’t
   allow for it, you could take a different approach and drag a page in like in 
   [this snippet](http://www.themesandco.com/snippet/enter-text-posts-static-blog-page/).
 *  [ElectricFeet](https://wordpress.org/support/users/electricfeet/)
 * (@electricfeet)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/adding-raw-html/#post-5085374)
 * p.s. with may sliders (including metaslider free), you can specify the size of
   the slider easily, so you can make it as small as you need for your logo.
 *  Thread Starter [Oxygen89](https://wordpress.org/support/users/oxygen89/)
 * (@oxygen89)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/adding-raw-html/#post-5085387)
 * [@electricfeet](https://wordpress.org/support/users/electricfeet/): Thanks a 
   lot for giving me too many workarounds for slider.
    But, my basic question is
   if is not a good practice to include too much html into a php variable (i’m also
   very scared to put too much html inside php variable ), then could you tell me
   any workaround for that.
 * So far, i found that snippet only to put some content above the featured images,
   but, in that putting html inside php is very scary.
 * So, is there any other solution?
 * Thanks
 *  [ElectricFeet](https://wordpress.org/support/users/electricfeet/)
 * (@electricfeet)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/adding-raw-html/#post-5085397)
 * With Metaslider—as with Customizr—your text is in the slider, not in php.
 * I think it would be helpful to take a step back and ask: What exactly are you
   trying to achieve?
 *  Thread Starter [Oxygen89](https://wordpress.org/support/users/oxygen89/)
 * (@oxygen89)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/adding-raw-html/#post-5085400)
 * [@electricfeet](https://wordpress.org/support/users/electricfeet/): I’ll sit 
   and analyze, what can be done in this. Thanks a lot.
 *  Thread Starter [Oxygen89](https://wordpress.org/support/users/oxygen89/)
 * (@oxygen89)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/adding-raw-html/#post-5085404)
 * One question: I’ve d’loaded meta slider plugin, but, i need to implement on home
   page above the featured images, so, how do i paste the shortcode inside a home
   page?
 * Thanks
 *  [rdellconsulting](https://wordpress.org/support/users/rdellconsulting/)
 * (@rdellconsulting)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/adding-raw-html/#post-5085406)
 * Look at this [snippet](http://www.themesandco.com/snippet/add-content-below-slider/),
   but look down the comments where Nic posted a solution.
 *  Thread Starter [Oxygen89](https://wordpress.org/support/users/oxygen89/)
 * (@oxygen89)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/adding-raw-html/#post-5085409)
 * I got the snippet working, but my requirement slightly differs from this. What
   i need is, 4 boxes **at a time** (with four different images shown), and then
   next 4 images and so on.
 * So, the slider will act for more than one image(may be 3 or 4), not for single
   image.
 * So, [@rdellconsulting](https://wordpress.org/support/users/rdellconsulting/)/
   Electric feet: Could you recommend anything else or any workaround. See this 
   [image](http://imgur.com/BVa0mfv). Need something like this.
 * Thanks
 *  [rdellconsulting](https://wordpress.org/support/users/rdellconsulting/)
 * (@rdellconsulting)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/adding-raw-html/#post-5085411)
 * What site is showing that image? Need to investigate the html
 *  Thread Starter [Oxygen89](https://wordpress.org/support/users/oxygen89/)
 * (@oxygen89)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/adding-raw-html/#post-5085413)
 * Yes, i can give you the [url](http://ankitelectricals.com/).
 * The slider is just above the footer.
 * Thanks
 *  [rdellconsulting](https://wordpress.org/support/users/rdellconsulting/)
 * (@rdellconsulting)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/adding-raw-html/#post-5085414)
 * Looks to me like its using [WP Slick Slider](https://wordpress.org/plugins/wp-slick-slider/).
   Did you investigate that (don’t see it mentioned above)?
 * Not much documentation on their [website](http://www.tigerstrikemedia.com/plugins/wp-slick-slider/)
 *  Thread Starter [Oxygen89](https://wordpress.org/support/users/oxygen89/)
 * (@oxygen89)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/adding-raw-html/#post-5085415)
 * I searched slick slider, but, its reviews are bad and in fact it is not compatible
   with 3.9.1. So, will try something else. Anyways, thanks a lot.
 *  [ElectricFeet](https://wordpress.org/support/users/electricfeet/)
 * (@electricfeet)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/adding-raw-html/#post-5085416)
 * It has 2 bad reviews, one of which didn’t like where it places itself on the 
   WordPress dashboard–which is purely a subjective view and nothing to do with 
   the functionality of the slider..
 * What makes you say it’s not compatible with 3.9.1? It seems to have been updated
   quite recently.

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/adding-raw-html/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/adding-raw-html/page/2/?output_format=md)

The topic ‘Adding raw html’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/customizr/4.4.24/screenshot.png)
 * Customizr
 * [Support Threads](https://wordpress.org/support/theme/customizr/)
 * [Active Topics](https://wordpress.org/support/theme/customizr/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/customizr/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/customizr/reviews/)

## Tags

 * [content](https://wordpress.org/support/topic-tag/content/)

 * 22 replies
 * 5 participants
 * Last reply from: [acub](https://wordpress.org/support/users/acub/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/adding-raw-html/page/2/#post-5085470)
 * Status: resolved