Dropdown arrow change on click

Code for changing the dropdown arrow on click. You can change the arrow from + to – You can change the symbols you want.[up-down,plus-minus etc]. Javascript code: function changeText(idElement) { var element = document.getElementById(‘element’ + idElement); if (idElement === 1 || idElement === 2 ) { if (element.innerHTML === ‘+’) element.innerHTML = ‘ -‘; else […]

Read More

Include different PHP files depending on the screen size

Following is the way to include a different headerĀ on different screen sizes: I have used 2 different headers: mobile_header.php desktop_header.php   <style type=”text/css”> @media only screen and (min-width: 768px) { /* tablets and desktop */ div#mobile { display: none } } @media only screen and (max-width: 767px) { /* phones */ div#desktop { display: none […]

Read More

Facebook Page Feed

To get the Facebook feed on your website you need to follow the code which I have written below. load_face_posts(); function load_face_posts() { $page_name = krina; // Example: http://facebook.com/{PAGE_NAME} $page_id = 123; // can get form Facebook page settings $app_id = 123; // can get form Developer Facebook Page $app_secret = 123; // can get […]

Read More