Implementing a simple slider in code?

First off, you shouldn’t insert <script> tags into WordPress’s template files. The proper way to add Javascript code is to use wp_enqueue_script(). If I’m reading this right, it appears you’re using jQuery code, so you’ll need to ensure that jquery is in the $deps array in your wp_enqueue_script() call. Also, WordPress uses jQuery in noConflict … Read more

How to edit the default icon of Add Media button?

this function get_stylesheet_directory_uri() return URI to current theme’s stylesheet directory and /css/my-admin.css is path to their file which you can create in your theme directory example : <link rel=”stylesheet” type=”text/css” id=”my-css” href=”https://yourdomain.com/wp-content/themes/yourtheme/css/my-admin.css”> this is the output of the code in your source

Why is the CSS horizontal alignment for divs inside div container not displayed in my WP Theme?

Never add a padding on something whose width/height you fix. Some browsers add the padding to the width/height; others don’t. Use an inner div to work around the issue: <div style=”width:200px; height: 200px; background: red; padding: 10px;”> 220×220 </div> <div style=”width:200px; height: 200px; background: green;”> <div style=”padding: 10px;”> 200×200 </div> </div>

how to hide submenus for the not active pages

I use just such a menu in my Oenology Theme. Feel free to use the sidebar menu CSS to suit your needs! Rather than try to post it all here, I’ll just link to the Oenology GitHub repository. EDIT: Here’s where the sidebar navigation menu style definitions start.

How to change H1 color only for pages [closed]

I’ll go ahead and answer it anyway. Assuming the theme is built right (I’ll get to that in a second) .page and .single are applied to the <body> tag for pages and posts respectively. In order to ensure those classes are applied, ensure the following template tag is used: <body <?php body_class(); ?> > Then, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)