HEX
Server: Apache
System: Linux server-634962.emtiyz.com 5.14.0-611.11.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Dec 3 09:47:37 EST 2025 x86_64
User: codo66ho (1003)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/codo66ho/public_html/aamcc.emtiyz.com/wp-content/themes/consultar/includes/theme-support.php
<?php
/*
 * All theme related setups here.
 * Author & Copyright:wpoceans
 * URL: http://themeforest.net/user/wpoceans
 */

/* Set content width */
if (!isset($content_width)) $content_width = 1170;

/* Register menu */
register_nav_menus(array(
	'primary' => esc_html__('Main Navigation', 'consultar')
));

/* Logo */
add_theme_support('custom-logo');

/* Background */
add_theme_support('custom-background');

/* Header */
add_theme_support('custom-header');

/* Thumbnails */
add_theme_support('post-thumbnails');

/* Post formats */
add_theme_support('post-formats', array('gallery', 'video', 'quote'));

/* Feeds */
add_theme_support('automatic-feed-links');

/* Add support for Title Tag. */
add_theme_support('title-tag');

/* HTML5 */
add_theme_support('html5', array('gallery', 'caption'));

/* Breadcrumb Trail Support */
add_theme_support('breadcrumb-trail');

/* WooCommerce Support */
add_theme_support('woocommerce');

add_editor_style();

/* Languages */
if (!function_exists('consultar_theme_language_setup')) {
	function consultar_theme_language_setup()
	{
		load_theme_textdomain('consultar', get_template_directory() . '/languages');
	}
	add_action('after_setup_theme', 'consultar_theme_language_setup');
}

/* Slider Revolution Theme Mode */
if (function_exists('set_revslider_as_theme')) {
	add_action('init', 'consultar_theme_revslider');
	function consultar_theme_revslider()
	{
		set_revslider_as_theme();
	}
}

/* Visual Composer Theme Mode */
if (function_exists('vc_set_as_theme')) vc_set_as_theme();

add_filter('wp_list_categories', 'consultar_cat_count_span');
function consultar_cat_count_span($links)
{
	$links = str_replace('</a> (', '</a> <span>(', $links);
	$links = str_replace(')', ')</span>', $links);
	return $links;
}

if (!function_exists('wp_body_open')) {

	/**
	 * Shim for wp_body_open, ensuring backwards compatibility with versions of WordPress older than 5.2.
	 */
	function wp_body_open()
	{
		do_action('wp_body_open');
	}
}