Categories
Mastering Development

Java program to sort a versioning string in an ascending order

I have a list containing version strings, such as things: versions_list = ["1.1.2", "1.0.0", "1.3.3", "1.0.12", "1.0.2"] I would like to sort it, so the result would be something like this: versions_list = ["1.0.0", "1.0.2", "1.0.12", "1.1.2", "1.3.3"] How to do this in Java.

Categories
Mastering Development

Excel file cannot open with uwsgi + django?

The excel file generated cannot be open when my project started with uwsgi as it can be opened successfully with manage.py runserver My main codes like below: ── test_excel ├── urls.py ├── wsgi.py └── settings.py ── manage.py urls.py from django.contrib import admin from django.urls import path from django.views import View from openpyxl.writer.excel import save_virtual_workbook import […]

Categories
CMS Mastering Development Wordpress

Adding css and js to a blank page created with custom template

I am new to wp, fair warning 🙂 I have added a new blank page by adding a php file in the twentytwenty theme folder with: <?php /* Template Name: charles */ ?> Then, I have created a new page by choosing the charles template in the admin. Now In my new blank page I […]

Categories
CMS Mastering Development Wordpress

Trying to Load jQuery

I’m trying to load jQuery but I can’t seem to get it to work properly. On this page here: https://koehlerrice.com/about-3/ I’m trying to get the image to fade from one color to another on the page load. Right now to keep it simple I’m trying to go from #000 to #fff This is where I’m […]

Categories
CMS Mastering Development Wordpress

Trying to Load jQuery

I’m trying to load jQuery but I can’t seem to get it to work properly. On this page here: https://koehlerrice.com/about-3/ I’m trying to get the image to fade from one color to another on the page load. I’m using this exact code here: http://jsfiddle.net/uhATT/ I uploaded the from the above link to a new .js […]

Categories
CMS Mastering Development Wordpress

Cannot retrieve script handles from custom scripts, not in $wp_scripts

I’m trying to retrieve the handles of my custom scripts by using: global $wp_scripts; var_dump( $wp_scripts ); But this is only showing me the script handles + info of all the scripts enqueued by WordPress by default. None of my custom scripts, all enqueued and working on their respective pages, is shown in the output. […]

Categories
CMS Mastering Development Wordpress

Styles and scripts not loading when wordpress is uploaded

My custom theme works well on my localhost, but when I upload it to my domain, it can not enqueue any of my styles and javascript. I have everything done correctly. wp_head & wp_footer installed, wp_enqueue_script & wp_enqueue_style defined for each element. Functions.php function load_stylesheets() { wp_register_style(‘bootstrap’, ‘https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css’); wp_enqueue_style(‘bootstrap’); wp_register_style(‘font’, get_template_directory_uri().’/css/font-awesome.min.css’, array(), 1, ‘all’); wp_enqueue_style(‘font’); […]

Categories
CMS Mastering Development Wordpress

My quetion is that

the code is working properly but media uploader is load again and again and not a single picture is implement on page my code is if (function_exists(‘register_sidebar’)) { register_sidebar( array( ‘name’ => ‘Left Sidebar’, ‘id’ => ‘left-sidebar’, ‘description’ => ‘Widget Area’, ‘before_widget’ => ‘<div id=”one” class=”two”>’, ‘after_widget’ => ‘</div>’, ) ); } // Register widget […]

Categories
CMS Development Wordpress

why jquery is not loading in wordpress page?

I want to add jquery plugin to wordpress webpage to provide some animations. I have downloaded “jquery.plate.js” from jqueryscript.net and saved it locally in my custom themes,(js/jquery.plate.js) js folder. <script src=”//code.jquery.com/jquery-3.2.1.slim.min.js”></script> <script src=”jquery.plate.js”></script> I have added the above code in my header using “echo get_template_directory_uri();” function. not working! tried with adding following code in function.php: […]

Categories
CMS Development Wordpress

setting wp_enqueue_script correctly

I am trying to include my own scripts in a child theme i set up. I have the following in functions.php: function custom_scripts() { wp_enqueue_script(‘custom_js’, get_stylesheet_directory_uri() . ‘custom_js.js’, array(‘jquery’), ‘1.0.0’, false ); } add_action( ‘wp_enqueue_scripts’, ‘child_theme_configurator_css’, ‘custom_scripts’, 10 ); but for some reason it isn’t showing up in the scripts area within the page source. […]