-
How to fix: Jekyll build/serve error message
We can set up a local version of our Jekyll GitHub Pages website to preview our website before making the changes public. But when I run the
Continue reading →jekyll [build | serve]
command it throws the following error message: -
Detect ad blocker and show a message to visitor of website
For many websites that publish content for free, ads are one of the primary sources for getting revenue. This revenue is spent for paying the expenses to run the website. Reduction of the displayed ads means less revenue. If you’re finding that the majority of your website’s visitors are blocking ads then you might want to try displaying a friendly message asking them to disable the ad blocker extension that they have installed in web browser. In this article I’ll show you how I detect the ad blockers and show the message to visitors of my website.
Continue reading → -
Making smart sticky elements by using a jQuery plugin
Sometimes when I surfing the Internet I see the sticky elements that applied on website. Most often it’s a sticky ads that placed in sidebar. Sticky ad is an ad unit that stays in place while the page scrolls. Some are fixed completely when others (often placed at the end of sidebar content) scroll until they are in view then stay in a fixed position as the user scrolls further down the page.
Continue reading → -
Including the jQuery library to website
In addition to custom JavaScript files many developers find jQuery useful. jQuery is the most popular JavaScript library available that allows developers to easily and quickly add enhancements to the appearance and behaviors of their projects. So developers can perform common JavaScript functions while using less code.
Continue reading → -
WP Plugin: "Syntax Highlighter for Post/Page HTML Editor"
An easy to use, with intuitive interface, WordPress plugin that replaces the default Post & Page HTML/Text Editor with an enhanced editor by a CodeMirror library. The WordPress default Post & Page HTML/Text Editor is great for doing some custom changes to HTML markup of your post/page, although it is rather limited. This is where the “Syntax Highlighter for Post/Page HTML Editor” can help. With an enhanced HTML/Text editor you can see a code with syntax highlighting, and with line numbering, so you can easily read your HTML markup and detect any errors.
Continue reading →