e-smartsolution » Blog Archives

Author Archives: e-smartstolution

Website developer Wordpress

All 404 redirect by .htaccess and PHP

Published by:

All 404 redirect by .htaccess and PHP

1- Edit or create the file ..htaccess:

ErrorDocument 404 /404.php

 

2- Create the file php 404.php

<?php
//on .htacessErrorDocument 404 /404.php
header(‘location:https://www.ukgoodbye.co.uk/shop’);
?>

Example:

https://ukgoodbye.co.uk/shop/thisfileNOtExisit

 

 

Website developer Wordpress

Make Fancybox appear on top of the page

Published by:

Make Fancybox appear on top of the page
When setup a link to an image using fancybox but when the user clicks on the thumbnail the fancybox box won’t appears on the top all your content. Like you can see on the next image:


An easy and quick solution for that is setup the z-index of fancybox container

.fancybox-container{
z-index:9999999999!important;
}

Now us result that your image should appear on the top of everything:
FancyBox on the top of everything

Website developer Wordpress

WP, how to add your custom post type by code

Published by:

WP, how to add your custom post type by code

“WordPress can hold and display many different types of content. A single item of such a content is generally called a post, although post is also a specific post type. The table of that contains the posts is “wp_posts” the database that is normally MySQL.”
The default posts types on WordPress are:

  1. Post (Post Type: ‘post’)
  2. Page (Post Type: ‘page’)
  3. Attachment (Post Type: ‘attachment’)
  4. Revision (Post Type: ‘revision’)
  5. Navigation Menu (Post Type: ‘nav_menu_item’)
  6. Custom CSS (Post Type: ‘custom_css’)
  7. Changesets (Post Type: ‘customize_changeset’)
  8. User Data Request (Post Type: ‘user_request’ )
  9. Custom Post Types

The custom Post Types are the new post types. We are going to create a post types “Testimonials”, to do so we will to add
a custom post type to WordPress via the register_post_type() function and this allows us to define a new post type by its labels, supported features, availability and other specifics.

Note that you must call register_post_type() before the admin_menu and after the after_setup_theme action hooks. A good hook to use is the init hook.

1- Create the post type function

function create_post_type() {
  register_post_type( 'esm_testimonials',
    array(
      'labels' => array(
        'name' => __( 'Testimonials' ),
        'singular_name' => __( 'Testimonial' )
      ),
      'public' => true,
      'has_archive' => true,
    )
  );
}
add_action( 'init', 'create_post_type' );
2- Add the above function to your WP
Navigate to WordPress(WP), rootDirectory/wp-content/themes/your-theme/functions.php
wp custom post type

 

3- Check for our Custom post type, on WP admin

We should see on WordPress, www.ourhost.com/wp-admin, our custom post type added. “Testimonials”

4- Optional, add existing category to a Custom post type
The custom post type is created successfully, we want to add an existing category called “Testimonial” our brand new custom type.
// I- Add existing taxonomies to post type testimonials
add_action( ‘init’, ‘wp_add_taxonomies_to_testimonials’ );
function wp_add_taxonomies_to_testimonials() {
register_taxonomy_for_object_type( ‘category’, ‘testimonial’ );
register_taxonomy_for_object_type( ‘post_tag’, ‘testimonial’ );
}

// II. Make Testimonial posts show up in archive pages
add_filter( ‘pre_get_posts’, ‘wptestimonial_add_custom_post_types_to_query’ );
function wptestimonial_add_custom_post_types_to_query( $query ) {
if(
is_archive() &&
$query->is_main_query() &&
empty( $query->query_vars[‘suppress_filters’] )
) {
$query->set( ‘post_type’, array(
‘post’,
‘testimonial’
) );
}
}

IMEI IMEI blacklist checker

Free IMEI blacklist checker

Published by:

Free IMEI blacklist checker

If you need Phone INFO ★Samsung★ like the IMEI
Enter your IMEI number to check the Blacklist

IMEI number appears on the screen of the device by dialing *#06# just like a phone number.

Thanks to IMEI24.com you can check if your device is not blacklisted in: Great Britain, USA, Canada, Australia, Ireland, Brazil, Venezuela, Chile, central Europe and many more.
All models are supported like: iPhone, Samsung, Nokia, Motorola, LG, Huawei and more

Apple iCloud Manufacturer

Before you give away your device or sale, restore your iPhone, iPad, or iPod to factory settings

Published by:

Before you give away your device or sale, restore your iPhone, iPad, or iPod to factory settings

If are thinking to sale or give away your iPhone, iPad, iPod from Appple you must restore it to factory settings.

A factory restore erases the information and settings on your iPhone, iPad, or iPod and installs the latest version of iOS or iPod software.

Option 1 Restore your device to factory settings from Mac or PC

Open iTunes on your Mac or PC. If you can’t access a computer and your device still works, you can erase and restore your device without a computer.
Connect your iPhone, iPad, or iPod to your computer with the cable that came with your device.
If a message asks for your device passcode or to Trust This Computer, follow the onscreen steps. If you forgot your passcode, get help.
Select your iPhone, iPad, or iPod when it appears in iTunes. For an unresponsive device or one that won’t turn on, learn what to do. Or get help if your device doesn’t appear in iTunes.

Option 2 Restore your iPhone or iPad

  1. To reset your iPhone or iPad go to Settings > General > Reset and then select Erase All Content and Settings.
      • > General

        iphone 8, setting general

        Setting->General

      • Reset and then select Erase All Content and Settings.Erase All Content and Settings
      • Just, click “Erase Now”Just, click "Erase Now"
  2. After typing in your passcode if you’ve set one, you’ll get a warning box appear, with the option to Erase iPhone (or iPad) in red. Tap this.
  3. You’ll need to enter your Apple ID password to confirm the action, then the iPad or iPhone will wipe everything off its storage and go back to the initial setup screen you saw when you first used the device.
  4. You can also fully reset your iPhone or iPad through iTunes. When you plug in your iOS device, you should be able to see a ‘Restore iPhone’ button, which will fully reset the device.

By selling or buying second hand devices you are contributing to health of the environment

Apple iCloud Manufacturer

What does iCloud locked mean, for Apple?

Published by:

What does iCloud locked mean, for Apple?

The disadvantage is that without the AppleID and passcode used to originally setup the iPhone, you will not be able to activate it. You will not be able to complete the setup process. You will have an unusable iPhone.

Apple find My iPhone
Find My iPhone includes Activation Lock—a feature that’s designed to prevent anyone else from using your iPhone, iPad, iPod touch, or Apple Watch if it’s ever lost or stolen. Activation Lock is enabled automatically when you turn on Find My iPhone.

Before you give away your device or sale

Make sure that you turn off Find My iPhone on your device before you give it away or send it in for repair. Otherwise, your device is locked and anyone that you give the device to can’t use it normally and Apple technicians can’t perform service repairs. Just sign out of iCloud and then erase all content and settings. This completely erases your device, removes it from your Apple ID, and turns off Find My iPhone.

Apple iPhone Manufacturer Repair Smartphone

Easy way to identifiy your iPhone model name, example iPhone 5s

Published by:

Easy way to identify your iPhone model name, example iPhone 5s

The method is basically is the same for rest of Apple smartphones models, you just need to find out the model number that comes on the iPhones, Settings=>General=>About=>Model number and on ukgoodbye.co.uk/smartphones, you need to type that model number(A1457)

1- Setting
Click the home button, to go back to Home, and click on “Settings
iphone setting

2- Open Settings and select “General

Iphones, settings,general

3- On “General”, select or click on “About

Settings, General, About

Next to Model you’ll see an alphanumeric code almost certainly beginning with an M. Click on model number(example, ME4238/A) and it will change to the version starts with “A1457”, as you find out on the picture.

Model number A1457

and you want to know the model name, click here https://www.ukgoodbye.co.uk/smartphones/

You just need to type the Model number, A1457, and the model name will appear as you can see on the picture

Identifier model name

Once clicked on the model number “A1457”, you can find out mode more information about your iPhone.

 

UKgoodbye webmaster

UKgoodbye, Learn how to identify your smartphone model

Published by:

UKgoodbye, Learn how to identify your smartphone model

Learn how to identify your smartphone model by its model number and other details.

You can identify your smartphone by Brand, model name, number, colour and capacity, you just to type on search box, as you can find out on the picture:

https://www.ukgoodbye.co.uk/smartphones

By e-smartsolution for UKgoodbye.co.uk

 

Apple Repair Smartphone

How to find out, how many GB, capacity, my iPhone is?

Published by:

How to find out, how many GB, capacity, my iPhone is?

Click the home botton, to back to home, if you were some where else, like on FBHow to Find Out How Many GB My iPhone Is

 

 

 

 

 

 

 

 

step 1

Click on Tap the “Settings” icon on iPhone’s

Step 2

Click on the Tap the “General”
Tap the "Settings" icon on iPhone's home screen

 

 

 

 

 

 

 

Step 3

Click on the tap “About”, the total storage size of your iPhone in the Capacity section of the screen

 

iPhone Repair Smartphone

iPhone won’t charge from computer, but it charges from wall power outlet

Published by:

iPhone won’t charge from computer, but it charges from wall power outlet

The iPhone only turn when it connected to wall, but it turn on and off constantly, for more information have a look to the next video. It is stuck on the Apple logo during startup and can’t continue past it to the home screen,

Possible solutions

1 Restart the iPhone. To force to
Force restart your device:
On an iPhone X, iPhone 8, or iPhone 8 Plus: Press and quickly release the Volume Up button. Press and quickly release the Volume Down button. Then, press and hold the Side button until you see the Apple logo.
On an iPhone 7 or iPhone 7 Plus: Press and hold both the Side and Volume Down buttons for at least 10 seconds, until you see the Apple logo.
On an iPhone 6s and earlier, iPad, or iPod touch: Press and hold both the Home and Top (or Side) buttons for at least 10 seconds, until you see the Apple logo.
If you have restart many times the iPhone and it still stucking at Apple logo, try the next option

2 Recovery mode To put an iPhone in Recovery mode. Press and hold down the Home button as you connect your iPhone to your computer using a USB cable. Keep holding down the Home button until you see the Connect to iTunes screen.