Helpful Bits and Bobs

Useful jQuery Snipz


Use Slick Slider

$('.my_element').slick({
  infinite: true,
  autoplay: true,
  arrows: true
});

Use Vegas Slider

$(".my_element").vegas({
    slides: [
        { src: "/media/images/slide-one.jpg" },
        { src: "/media/images/slide-two.jpg" },
        { src: "/media/images/slide-three.jpg" }
    ]
});	

Also Custom Buttons for Vegas

$('.my_next_button').on('click', function() {
    $('.my_element').vegas('next');
});
$('.my_prev_button').on('click', function() {
    $('.my_element').vegas('previous');
});

If you click this, scroll to this

$('.my_element').click(function() {
$('html,body').animate({
    scrollTop: $(".place_to_scroll_to").offset().top},'slow');
});

Back To Top Button

$('.my_element').click(function() {
    $('html, body').animate({
        scrollTop: 0
    }, 800);
    return false;
});	

Add year inside an element

var whatYearIsIt = (new Date).getFullYear();
$(".my_element").text( (new Date).getFullYear());	

Add class="active" to the anchor if this is the page we're on

var pgurl = window.location.href.substr(window.location.href.lastIndexOf("/") + 1);

$("nav ul li a").each(function() {
    if ($(this).attr("href") == pgurl || $(this).attr("href") == '')
        $(this).addClass("active");
})

**Some Generic Content

We are #title - A fully qualified and highly skilled #ing company based in Ely

A friendly and reliable team who work hard to maintain our reputation as one of Ely's most trustworthy #ing companies

We pride ourselves on offering a hassle free and affordable service where the customer needs always take priority, as do excellent quality workmanship and operating to modern standards. As a company we are confident that we can meet all your requirements on your next #ing project and also exceed your expectations when it comes to quality and affordable #ers in Ely. All of our team are highly skilled in the #ing trade and have built up a wealth of experience over the last several years, so no job is too demanding for us as we have all been trained to deal with every situation that the #ing trade can offer.

#title have been providing the people of Ely with a wide range of customer focused #ing services for many years!

#title have many satisfied and returning customers because we provide the best and most comprehensive #ing services in and around Ely, with a friendly service from start to completion, and a time served and highly skilled team, you can rest assured that you are getting both excellent value for money and a personal service at each and every job we attend.

So if you're looking for a #ing company in Ely with many years experience in the #ing trade then look no further than #title. Whether it’s a query or a quote, pick up the phone and call 07738 617 076 today or visit our contact page or send us an email.


**Generic About Text (small)

Our mission is to provide the residents of Ely with a no hassle #ing service where all work exceeds expectations, meets deadlines and offers excellent value for money. We work very closely with our clients to ensure complete customer satisfaction.


**Generic Quote

Our customers are very important to us. We show true dedication to meeting their exact needs, and this is what keeps them returning to us for #ing work time and time again.

**Some generic list

We are a #ing business and our main priorities are to...


**Services Page Content

#title - Offering a wide range of affordable #ing services

We have all aspects of the #ing trade covered!

Being time served and highly skilled #ers means we can offer all of our clients the following #ing services.

If you would like any additional information regarding any of the services listed above then please feel free to call 07738 617 076 or visit our contact page to get in touch with us via email.


Basic Form Using Basic Send Mail Method

Contact #title today for a no obligation #ing quote

Use the form below to send us an enquiry. We will respond to your questions as soon as possible although if your looking for a more immediate answer to your question, please do not hesitate to call us on 07738 617 076 instead.

*Replace "andyrollingspainter@gmail.com" in action attribute with customers email.



Leons CP Rules

  1. Main css file should always be named style.css
  2. Sub menus should have the class ".sub"
  3. Do not use jQuery in the editable area.
  4. All images (except gallery) in one folder, named images. (This folder can have sub folders)
  5. No global styles, detailed css
  6. Every gallery, in a separate folder in galleries folder i.e. ( gallery/bathrooms, gallery/kitchens )
  7. No layout changes for different pages(with some exceptions - always consulted with me or Chris)
  8. Always use
    nav ul li a
    For Nav layout
  9. If using an active class, use class="active".
  10. Always create a submenu for menu(even if there none, upsellers may sell unlocked control panel )
  11. Don't use images from gallery on the website - make copy of an image you want use, and store in images folder
  12. Use everywhere single quotes
  13. Don’t merge different pages (for example testimonials and gallery)
  14. Don’t use 3x $(document).ready for every slider.
  15. Always make footer resizeable (cp footer with seo is way bigger than 50px)
  16. Put all css/js/images/ in media folder. Also use the same
  17. Don’t create folder for different plugins(for example slick has it’s own folder in one of the templates )
  18. Don’t upload PSD files on server - This Means YOU Bumhead.
  19. Use class “CONTROL-PANEL” to mark, where editable content should be.
  20. ALWAYS use captcha code on user-submittable forms. Even callback forms.
  21. Don’t use 20Mb image files as files as thumbnails, making it only smaller with html/css. Resize please
  22. Do not put slider files in their own folder (for example /slick/style.css) please stick to using the css and js folders that contain the other files such as main style.
  23. If you use CSS Transitions on your nav dont transition everything