add ssl to all elementor content

in order to add ssl to all elementor content mostly images and i mean changing from http:// to https://

go to elementor tools

yourwebsite.com/wp-admin/admin.php?page=elementor-tools

and on the row

Update Site Address (URL)

put the old link and new ssl link and press replace url

that’s it

Advertisements

Different logo per language

I use theme called “betheme” a lot and lately used wpml and i wanted to use

different logo for each language as client requested so i find nice way yo

do it without changing the header code. This should work on all themes by

the way

1. Go to WPML > String translation, scroll all the way to the bottom and look for a “Translate texts in admin screens”, Select the logo field, if it appears,

2. go to WPML > String translation and search for “logo” and in the drop-menu beside Select strings within domain choose “admin_texts_betheme”
and press search u should see the link for the logo for the current language just replace it with the new logo link and u done

isotope right to left support

isotope can be modified to support right-to-left layouts for languages like Hebrew and Arabic.

See test: Right to left

WHAT I DID IS TO ADD THIS TO THE JQUERY CALLING THE ISOTOPE

isOriginLeft: false,

for example



function applyIso()
{
container.isotope({
layoutMode : '',
itemSelector : '.isotope-item',
transitionDuration: '0.6s',
isOriginLeft: false,
//transformsEnabled: false,
filter: "*"
}, function()

You’ll need to make the following changes:

  • Modify Isotope’s _positionAbs method
  • Set transformsEnabled: false in the Isotope options
  • Add CSS transition property styles for right/top

JavaScript for right-to-left support

/ modify Isotope's absolute position method
$.Isotope.prototype._positionAbs = function( x, y ) {
  return { right: x, top: y };
};

// initialize Isotope
$('#container').isotope({
  transformsEnabled: false
  // other options...
});

CSS for right-to-left support

.isotope .isotope-item {
  -webkit-transition-property: right, top, -webkit-transform, opacity;
     -moz-transition-property: right, top, -moz-transform, opacity;
      -ms-transition-property: right, top, -ms-transform, opacity;
       -o-transition-property: right, top, -o-transform, opacity;
          transition-property: right, top, transform, opacity;
}

Google Maps field setting to add API key

there is new api request in the maps of google this is how u fix this just add this to function.php in your active theme

u need to generate a key on this link
https://console.developers.google.com/apis

function nr_load_scripts() {
		
	wp_register_script('googlemaps', 'https://maps.googleapis.com/maps/api/js?key=XXX',null,null,true);  
	wp_enqueue_script('googlemaps');
		
}
add_action( 'wp_enqueue_scripts', 'nr_load_scripts' );