How to write dynamic css in a php file in wordpress

It’s always standard to maintain a separate css file for styling, even for dynamic css that is generated by the theme options. Most of the theme developers include this dynamic styles into the header or footer using wp_head or wp_footer hook. How’s about having a totally separate css file for the dynamic styles? It’s pretty simple so let’s start! In my example, I have used redux framework, so that I have a global variable. In my case, I assume my global variable is $lts. So, in functions.php you need to add like this: [php] // Adding custom script add_action( ‘wp_enqueue_scripts’, […]

Continue Reading

You may also like

How to make your wordpress secure, wp config tips and many more

You don’t want your site to be hacked, right? Security should be at the top of to-do list. It doesn’t matter which CMS or platform you use for your website or application or portal, but you need to always think about security. Well, you never can stop a hacker to hack your site, but you can make this difficult for you. Today we are going to discuss about some security issue and wp-config tips. wp-config.php file is the key of a wordpress site, like a foundation when you build a building. Everything in wordpress stand based on this configuration file. […]

Continue Reading

You may also like

Enable css for HTML5 tags in Older Internet Explorer: HTML5 – The Beautiful Butterfly! Part 3

First you may take a look in: Part 1 Part 2 This is a very interesting topic. Most of the html5 tags are not supported in older versions Internet Explorer(IE) or other older browsers. When we develop a website in html5, we consider it. You can ignore older versions of FF, Chrome or Safari, but you can’t just ignore IE7 or IE8. Well, some tags are still not supported in any browsers, but what about simple tags like section, article, header, nav etc? When we apply styling on these tags using css, the tags are not recognized in IE at […]

Continue Reading

You may also like

HTML5: The Beautiful Butterfly! Part 2

Before starting this part, you may like to take a look on part 1. We are going to discuss some more important changes in this post. As HTML5 has been taking the top place of tomorrow’s world, it has a lots of flexibility. So, it’s your turn to use the resource that you have in HTML5. Section, Article and Aside tag Section is used to separate two or more parts, to make a connection between a heading and it’s excerpt or content. Also, within a section you can use h1 elements without having to worry about whether a particular section […]

Continue Reading

You may also like

How to add login logout link in wordpress menu

We can add login and logout link using Appearance > Menus and then custom link. But then both links will be shown always, doesn’t matter if you are logged in or out. But if you want to use Login link only for visitors and logout link only for members, this little snippet will help you with that. You can add those codes in your functions.php in the theme, if you think your theme won’t be changed. Otherwise mu-plugins is the best solution. To use mu-plugins, go to /wp-content/ and find the folder with name ‘mu-plugins’. If there is no folder […]

Continue Reading

You may also like

HTML5: The Beautiful Butterfly! Part 1

HTML or Hypertext Markup Language is a formatting language that programmers and developers use to create documents on the Web. The latest edition HTML5 has enhanced features for programmers such as video, audio and canvas elements. You view a Web page written in HTML in a Web browser such as Internet Explorer, Mozilla Firefox or Google Chrome. The HTML5 language has specific rules that allow placement and format of text, graphics, video and audio on a Web page. Programmers use these programming tags or elements to produce web pages in unique and creative ways. Tags enable the creator to make […]

Continue Reading

You may also like

How to add extra field in the wordpress user profile

Hi Folks! Sometimes we need to add extra fields in wordpress user profile page for some more information like website URL, bio or AIM etc. Well, there is an easy solution from admin dashboard if you use BuddyPress. You can add new profile fields from Users > Profile fields. But what if you don’t use BuddyPress? Well, you are still able to add extra fields with some line of codes. You can add those codes in your functions.php in the theme, if you think your theme won’t be changed. Otherwise mu-plugins is the best solution. Let’s jump in the code: […]

Continue Reading

You may also like

How HTML5 supports older versions of IE

We all are aware of the popularity of HTML5 these days in the web-world. HTML5 and CSS3 are hot topics for a software developer which is getting huge attention from all around. All the browser companies are working day and night to make their browser in line with HTML5. The latest browser of Internet Explorer i.e. IE9 also supports a lot of HTML5/CSS3 standards nowadays. However the biggest challenge in front of every software developer is to make HTML5 work on older versions of IE. The most important difference between HTML5 and HTML4 is the usage of custom tags in […]

Continue Reading

You may also like

How to Activate Windows 7 Enterprise [Best Way]

Activate Windows 7 Enterprise or Professional Type in command prompt, open it as Administrator. slmgr.vbs -ipk FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4 (Windows 7 Professional) slmgr.vbs -ipk 33PXH-7Y6KF-2VJC9-XBBR8-HVTHH (Windows 7 Enterprise) slmgr.vbs -skms yuna.no-ip.info or slmgr.vbs -skms netplus.no-ip.info or slmgr.vbs -skms vault-tec.no-ip.org or slmgr.vbs -skms 91.149.135.121 wait for confirmation that the KMS Server has been set, then type slmgr.vbs -ato wait for few seconds, Windows 7 will now be activated !!! To check status, type slmgr.vbs -dlv It only works with Windows 7 Professional & Enterprise 32-bit & 64-bit in any language !! if it didnt workx DOWNLOAD WAT from THIS.. thepiratebay.org/torrent/5396069 open it and […]

Continue Reading

You may also like

When edit page is disabled for any sharepoint page

Sometimes you may see your edit page menu is disabled for some sharepoint site page. It may happens if someone check out that page and didn’t publish. In that case it’s good idea to not touch that page until you are sure that this page is still not being edited and he published the required version. Otherwise you will be totaled :p In this case, you have to: Click on Site Actions => Show Page Editing toolbar You will see editing toolbar. From Page menu click on override check out. Then you can edit this page and publish when you […]

Continue Reading

You may also like