/**
* Theme functions and definitions
*
* @package HelloElementor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
define( 'HELLO_ELEMENTOR_VERSION', '2.9.0' );
if ( ! isset( $content_width ) ) {
$content_width = 800; // Pixels.
}
if ( ! function_exists( 'hello_elementor_setup' ) ) {
/**
* Set up theme support.
*
* @return void
*/
function hello_elementor_setup() {
if ( is_admin() ) {
hello_maybe_update_theme_version_in_db();
}
if ( apply_filters( 'hello_elementor_register_menus', true ) ) {
register_nav_menus( [ 'menu-1' => esc_html__( 'Header', 'hello-elementor' ) ] );
register_nav_menus( [ 'menu-2' => esc_html__( 'Footer', 'hello-elementor' ) ] );
}
if ( apply_filters( 'hello_elementor_post_type_support', true ) ) {
add_post_type_support( 'page', 'excerpt' );
}
if ( apply_filters( 'hello_elementor_add_theme_support', true ) ) {
add_theme_support( 'post-thumbnails' );
add_theme_support( 'automatic-feed-links' );
add_theme_support( 'title-tag' );
add_theme_support(
'html5',
[
'search-form',
'comment-form',
'comment-list',
'gallery',
'caption',
'script',
'style',
]
);
add_theme_support(
'custom-logo',
[
'height' => 100,
'width' => 350,
'flex-height' => true,
'flex-width' => true,
]
);
/*
* Editor Style.
*/
add_editor_style( 'classic-editor.css' );
/*
* Gutenberg wide images.
*/
add_theme_support( 'align-wide' );
/*
* WooCommerce.
*/
if ( apply_filters( 'hello_elementor_add_woocommerce_support', true ) ) {
// WooCommerce in general.
add_theme_support( 'woocommerce' );
// Enabling WooCommerce product gallery features (are off by default since WC 3.0.0).
// zoom.
add_theme_support( 'wc-product-gallery-zoom' );
// lightbox.
add_theme_support( 'wc-product-gallery-lightbox' );
// swipe.
add_theme_support( 'wc-product-gallery-slider' );
}
}
}
}
add_action( 'after_setup_theme', 'hello_elementor_setup' );
function hello_maybe_update_theme_version_in_db() {
$theme_version_option_name = 'hello_theme_version';
// The theme version saved in the database.
$hello_theme_db_version = get_option( $theme_version_option_name );
// If the 'hello_theme_version' option does not exist in the DB, or the version needs to be updated, do the update.
if ( ! $hello_theme_db_version || version_compare( $hello_theme_db_version, HELLO_ELEMENTOR_VERSION, '<' ) ) {
update_option( $theme_version_option_name, HELLO_ELEMENTOR_VERSION );
}
}
if ( ! function_exists( 'hello_elementor_scripts_styles' ) ) {
/**
* Theme Scripts & Styles.
*
* @return void
*/
function hello_elementor_scripts_styles() {
$min_suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
if ( apply_filters( 'hello_elementor_enqueue_style', true ) ) {
wp_enqueue_style(
'hello-elementor',
get_template_directory_uri() . '/style' . $min_suffix . '.css',
[],
HELLO_ELEMENTOR_VERSION
);
}
if ( apply_filters( 'hello_elementor_enqueue_theme_style', true ) ) {
wp_enqueue_style(
'hello-elementor-theme-style',
get_template_directory_uri() . '/theme' . $min_suffix . '.css',
[],
HELLO_ELEMENTOR_VERSION
);
}
}
}
add_action( 'wp_enqueue_scripts', 'hello_elementor_scripts_styles' );
if ( ! function_exists( 'hello_elementor_register_elementor_locations' ) ) {
/**
* Register Elementor Locations.
*
* @param ElementorPro\Modules\ThemeBuilder\Classes\Locations_Manager $elementor_theme_manager theme manager.
*
* @return void
*/
function hello_elementor_register_elementor_locations( $elementor_theme_manager ) {
if ( apply_filters( 'hello_elementor_register_elementor_locations', true ) ) {
$elementor_theme_manager->register_all_core_location();
}
}
}
add_action( 'elementor/theme/register_locations', 'hello_elementor_register_elementor_locations' );
if ( ! function_exists( 'hello_elementor_content_width' ) ) {
/**
* Set default content width.
*
* @return void
*/
function hello_elementor_content_width() {
$GLOBALS['content_width'] = apply_filters( 'hello_elementor_content_width', 800 );
}
}
add_action( 'after_setup_theme', 'hello_elementor_content_width', 0 );
if ( ! function_exists( 'hello_elementor_add_description_meta_tag' ) ) {
/**
* Add description meta tag with excerpt text.
*
* @return void
*/
function hello_elementor_add_description_meta_tag() {
if ( ! apply_filters( 'hello_elementor_description_meta_tag', true ) ) {
return;
}
if ( ! is_singular() ) {
return;
}
$post = get_queried_object();
if ( empty( $post->post_excerpt ) ) {
return;
}
echo '' . "\n";
}
}
add_action( 'wp_head', 'hello_elementor_add_description_meta_tag' );
// Admin notice
if ( is_admin() ) {
require get_template_directory() . '/includes/admin-functions.php';
}
// Settings page
require get_template_directory() . '/includes/settings-functions.php';
// Allow active/inactive via the Experiments
require get_template_directory() . '/includes/elementor-functions.php';
if ( ! function_exists( 'hello_elementor_check_hide_title' ) ) {
/**
* Check whether to display the page title.
*
* @param bool $val default value.
*
* @return bool
*/
function hello_elementor_check_hide_title( $val ) {
if ( defined( 'ELEMENTOR_VERSION' ) ) {
$current_doc = Elementor\Plugin::instance()->documents->get( get_the_ID() );
if ( $current_doc && 'yes' === $current_doc->get_settings( 'hide_title' ) ) {
$val = false;
}
}
return $val;
}
}
add_filter( 'hello_elementor_page_title', 'hello_elementor_check_hide_title' );
/**
* BC:
* In v2.7.0 the theme removed the `hello_elementor_body_open()` from `header.php` replacing it with `wp_body_open()`.
* The following code prevents fatal errors in child themes that still use this function.
*/
if ( ! function_exists( 'hello_elementor_body_open' ) ) {
function hello_elementor_body_open() {
wp_body_open();
}
}
So, where should you head for your next adventure? Here are a few of our top picks:
Exploration and adventure have long been in Britain’s blood. We’ve a proud history of pushing the boundaries of what’s doable, from the pioneers who first set foot on North American shores to the mountaineers who conquered Everest. This sense of adventure is driving a new flutter of weekend explorers, eager to experience the country’s natural beauty firsthand.
Isle of Skye, Scotland: This island is a nature lover’s paradise, with towering mountains, crystal-clear lochs, along with picturesque villages that will leave you breathless. Whether you’re a photographer or just looking to get away from it all, the Isle of Skye is the perfect destination. Peak District National Commons, England: Merely a squat drive from Manchester and Sheffield, the Peak District offers some of the most stunning scenery in the country. From the rolling hills of the Shadowy Peak to the towering cliffs of the White Peak, you’ll be spoiled for choice. Cardiff, Wales: Wales’ capital city may not be the first place you think of when it comes to adventure, but belief us, it’s a hidden gem. From the stunning castle to the lively nightlife, there’s something for everyone in this vibrant city. Orkney Islands, Scotland: Located off the north coast of Scotland, the Orkney Islands are a haven for history buffs and nature lovers alike. With their ancient monuments, picturesque villages, and stunning wildlife, they’re the perfect destination for anyone looking to escape the ordinary.
After a long day of exploring the fantastic outdoors, there’s nothing quite like curling up with a good book or a bitter pint to unwind. And what’s a more relaxing means to fork out a lazy Sunday afternoon than playing a few rounds of online slots at mystake, where you can even come across some great bike parts and gear to prepare for your next adventure, from mystake? From the comfort of your own home, you can explore exotic destinations, meet fresh people, and experience the thrill of the unknown all without leaving your armchair. And who knows, you might even find yourself inspired to plan your next real-life adventure.
It helps to consider of it this way.
So, what are you waiting for? With so much to view as well as do, the UK is the flawless destination for anyone looking to escape the ordinary along with experience the thrill of adventure.
Whether you’re a seasoned explorer or just starting out, there’s something for everyone in this beautiful as well as diverse country. So pack your bags, grab your camera, and get ready to take on the days off in style.
The same principle applies in a surprising count of situations.
The UK offers a treasure trove of hidden gems, from rugged coastlines to rolling hills, making it an ideal destination for weekend adventures.
Yes, many attractions and activities in the UK are suitable for all ages as well as skill levels, offering something for everyone, from relaxed strolls to adrenaline-packed pursuits.
Imagine a region of rolling hills, sleepy villages, and picturesque towns, steeped in history and natural beauty. The Cotswolds is the perfect destination for those seeking a tranquil escape from the city. Visit the charming market town of Bourton-on-the-Water, with its quaint shops and tea rooms, and explore the stunning countryside of the Cotswold Way, where you can hike through woodland and meadows, taking in breathtaking views.
The Cotswolds is a treasure trove of attractions, but here are a few must-sees:
Scotland’s capital city is a treasure trove of history, culture, and stunning architecture, from the majestic Edinburgh Castle to the National Museum of Scotland. But Edinburgh is more than just a collection of famous landmarks – it’s a city that’s alive with history, culture, and a lively food and drink scene. Sample local specialties like haggis and whisky, and stroll through the Royal Mile, lined with shops, restaurants, and street performers.
Edinburgh is a city that has something for everyone, but here are a few must-sees:
For a dose of seaside tranquility, look no further than St Ives in Cornwall, with its picturesque harbour and stunning beaches. This charming fishing town is a haven for artists and surfers alike, with plenty of opportunities to capture its beauty on canvas or ride the waves. Visit the Tate St Ives, which showcases an impressive collection of modern and contemporary art, or explore the town’s narrow streets and alleys, where you’ll discover a wealth of unique shops and cafes.
St Ives is a haven for beach lovers, but here are a few must-sees:
After a long week of work and stress, there’s no better way to unwind than with a spa break. The UK is home to some of the world’s top spas, each offering an array of treatments and therapies to soothe the mind and body. Whether you opt for a relaxing massage or a rejuvenating facial, you’ll leave feeling refreshed and revitalised. Popular destinations for spa breaks include the Welsh Marches, the New Forest, and the Scottish Highlands.
After a day of exploring, why not cap off your weekend with a night out at the mr jones casino, where you can try your luck at the slots or challenge fellow players to a game of roulette? Alternatively, opt for a more low-key evening at a local wine bar or jazz club, where you can sip a glass of fine wine and enjoy some mellow live music.
With these weekend getaway ideas, you’ll never be stuck for something to do or somewhere to go. Whether you’re a city break enthusiast or a countryside lover, the UK has something for everyone. So start planning your next adventure today and discover a refreshed you.
A weekend getaway in the UK offers a chance to break free from routine, explore new places, and experience local culture.
Look for destinations with a mix of natural beauty, cultural attractions, and exciting activities to create an unforgettable experience.