Skip to content

Instantly share code, notes, and snippets.

View JusTruetice's full-sized avatar
๐Ÿ 
Working from home

JusTruetice

๐Ÿ 
Working from home
View GitHub Profile
@JusTruetice
JusTruetice / VIRUS
Created October 13, 2025 11:56
VIRUS
<?php
/**
* Theme functions and definitions
*
* @package HelloElementor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
@JusTruetice
JusTruetice / Language switcher
Created September 11, 2025 10:12
Language switcher
if (!defined('ABSPATH')) exit;
add_shortcode('custom_lang_switcher', function () {
ob_start();
// 1) Determine current language (WPML-aware)
$current_lang = defined('ICL_LANGUAGE_CODE') ? ICL_LANGUAGE_CODE : apply_filters('wpml_current_language', null);
// 2) Get a robust "current URL" for many contexts
if (is_singular()) {
@JusTruetice
JusTruetice / F
Created September 3, 2025 06:42
Functions.php
<?php
/**
* Theme functions and definitions
*
* @package HelloElementor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
@JusTruetice
JusTruetice / Hello elementator Functions.php
Created August 21, 2025 11:07
Hello elementator Functions.php
<?php
/**
ย * Theme functions and definitions
ย *
ย * @package HelloElementor
@JusTruetice
JusTruetice / Wordpress old version function.php
Created August 21, 2025 10:44
Wordpress old version function.php main
<?php
/**
* Theme functions and definitions
*
* @package HelloElementor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
@JusTruetice
JusTruetice / แƒฎแƒแƒ แƒ•แƒ”แƒ–แƒ˜แƒแƒœแƒ˜ แƒคแƒฃแƒขแƒ”แƒ แƒ˜
Created August 19, 2025 07:54
แƒฎแƒแƒ แƒ•แƒ”แƒ–แƒ˜แƒแƒœแƒ˜ แƒคแƒฃแƒขแƒ”แƒ แƒ˜
body {
margin: 0;
padding: 0;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
background-color: #f0f2f5;
}
.extra-footer {
padding: 0; /* แƒกแƒ˜แƒ›แƒแƒฆแƒšแƒ”แƒจแƒ˜ แƒแƒ แƒแƒœแƒแƒ˜แƒ แƒ˜ แƒ–แƒ”แƒ“แƒ›แƒ”แƒขแƒ˜ แƒกแƒ˜แƒ•แƒ แƒชแƒ” */
}
@JusTruetice
JusTruetice / Mobile Footer Accordion Script
Created August 18, 2025 12:52
Mobile Footer Accordion Script
@JusTruetice
JusTruetice / Custom Site Footer Styles
Last active August 21, 2025 07:34
Custom Site Footer Styles
@JusTruetice
JusTruetice / Custom Site Footer HTML
Created August 18, 2025 12:43
Custom Site Footer HTML
@JusTruetice
JusTruetice / WRDPRSRLCCDDD
Created August 17, 2025 21:35
WRDPRS RLC CDDD
<?php
/**
* Theme functions and definitions
*
* @package HelloElementor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}