520 comments found

  • Australia
  • Bought between 10 and 49 items
  • Has been a member for 2-3 years

Hey Rd, love this theme – just a MENU question for you. I’ve set up bpmainmenu but when I click on the menu button, only the first menu item shows up and then it quickly disappears! Any thoughts?

www.sydneykahuna.com.au

realdesigns

Hello,

what version of wow! Are you using? Can you download the latest version and install it please. Make a backup of your site and any changes you made to your theme.

Rd

BRANDARA

Looks like I was running 1.0…I downloaded and installed 2.0 which made all the menu items show – but now the menu still retracts as soon as you click on it\\

realdesigns

I’ll take a look

Rd

realdesigns

Hi,

Can you switch your site to your mobile site so that I can take a further look.

Thanks,

Rd

BRANDARA

Done! (thanks BTW)

realdesigns

Get back to you soon

Rd

realdesigns

Hi,

What plugins have you added recently? Can you turn all of them off and then turn them on one by one to see which one is causing the problem?

Thanks,

Rd

BRANDARA

Hey Rd – FIXED!!! I turned off all the plugins and then turned them all back on again (I couldn’t isolate which one was causing the problem) – but it seems to have fixed it.

Thanks for your help – it’s great to have an author who ACTUALLY responds to these questions!! Much appreciated!!!

realdesigns

Great news glad to be of help. :)

Rd

  • Bought between 10 and 49 items
  • Has been a member for 2-3 years

Hi RD, i am on the latest version and it seems to have a conflict with this plugin (Advanced Social Widget MailChimp Edition) which i purchased on codecanyon. When that plugin is activated the “previous|next” buttons don’t show. Please assist as soon as you can.

realdesigns AUTHOR 4 days ago Flag Hi,

In WP admin Settings > Reading > Blog pages show at most change this to 2 for example. Does this work?

Rd

StartupBotswana PURCHASED 1 hour ago Flag Hi Rd, no it didn’t work. Fore more information, my “blog pages show at most is default number is 10, and i’m using wow mysite on a single installation with the main theme.” Like I said everything works well, if the above mentioned plugin in is not activated.

realdesigns

Hi,

I don’t know why this is happening. The pagination is core WordPress functionality and shouldn’t conflict with anything else. Can you send me a link to your mobile website page where you have the problem?

Thanks

Rd

realdesigns

Hi,

I’m not sure what’s going on there are no errors in Google Dev tool console. Please ask the plugin developer if they have experienced similar problems?

Thanks

  • Australia
  • Bought between 10 and 49 items
  • Has been a member for 2-3 years

Hey Rd…Ok next question!! I’ve seriously been trying this for a while now – gone through the comments and tried the suggested code mods, but this just isn’t working! Sorry in advance for the repeat question…

I want my mobile site to display a different homepage to my desktop theme.

Desktop Theme uses a page called “home” (not latest posts), and I want the mobile theme to use a page called “mobilehome” (not latest posts).

So this is what I’ve tried:

1. I changed the Reading settings to “Latest Posts”

2. In mobile theme functions.php I added: update_option( ‘show_on_front’, ‘posts ’ );

3. In my desktop theme functions.php file I added $home = get_page_by_title( ‘home’ ); update_option( ‘page_on_front’, $home->ID ); update_option( ‘show_on_front’, ‘page’ );

After this, all I’ve succeeded in doing is changing the desktop theme to show my latest posts (as indicated by the wordpress Reading settings)...but nothing else has changed.

Also – I don’t know how this code will actually help me set my mobile theme to the “mobilehome” page…

Help! Many, many thanks!

realdesigns

Hi

What is the name of your homepage for your desktop website? You shouldn’t create a separate mobile homepage but edit index.php if you want to change the layout for your mobile site.

Does this help?

Rd

realdesigns

Hi Brandara,

Did you solve this problem?

Thanks,

Rd

BRANDARA

Hey Rd. Ok at least I get it now (I think)! ...so it’s not as simple as throwing in a bit of code to say “use this page as the homepage for my desktop” and “use this other page as the homepage for my mobile theme”... this setup says “hey mobile user! go and have a read of index.php file as the homepage!”.

Is that right?

So when you say edit the index.php file (I’m assuming the root index.php file), I have to enter straight up html in that file?

realdesigns

That’s correct you cannot assign a different homepage for your mobile website. If you want to change the layout customise index.php. Now if you cannot get the code to work e.g.

 $home = get_page_by_title( ‘home’ ); update_option( ‘page_on_front’, $home->ID ); update_option( ‘show_on_front’, ‘page’ );

You may be including it within a function. Can you send me your functions.php for mobile and desktop and I will take a look.

Thanks!!

Rd

  • Bought between 10 and 49 items
  • Has been a member for 2-3 years

I have the same issue as @BRANDARA

I have tried different ways to get the homepage to show different for mobile but no luck.

My desktop theme uses a page called “Home”, but not sure how to edit this page so it will show correctly for the mobile page.

realdesigns

Hi thanks for purchasing. Please click on the support tab then scroll to the post which helps with this issue. You do not need to create a separate mobile page. Hope this helps.

realdesigns

Hi, did you follow the same instructions that I sent brandara? Unless WordPress has updated its core this should work.

Rd

Default-user

I have tired all that I can think of to change the mobile index.php, but nothing I do seems to work. Even when I delete all the content form the index.php file the page still stays the same.

Is there another file I need to edit to make my changes take effect?

  • Bought between 10 and 49 items
  • Has been a member for 2-3 years

Hi, Rd On the archives page, selecting a month or subject shows all articles/posts for that month/subject fully open. I want to show only titles or titles and excerpt. How do I go about achieving that?

realdesigns

Hi,

Please search the WordPress codex to find your answer. You will be able to find it there. if you get stuck let me know.

rd

Default-user

I got stuck, didn’t find a solution. If you could show me a code to add on the theme templates that’d be helpful. Thanx.

  • Bought between 10 and 49 items
  • Has been a member for 2-3 years

Hi Rd On the pagination issue, the plugin author suggested this change on the pagination code on your theme (Try removing the CSS class of “shadow” so that it reads: ul class=”pagination” clear=” />). The changes were made on the single.php, page.php & post-template.php and they managed to bring back the pagination, but now the “previous” is shown as text only while “next” is shown as a button (http://startupbotswana.com/blog/page/2/). Assist on solving the issue, either restoring “previous” to be a button or making both text.

realdesigns

Hi,

You can makes these changed by opening these files yourself, making the changes and then saving them. You can do this within the editor in WordPress admin. Make sure to make a backup first.

Rd

Default-user

Rd, I already made those changes and have resulted into these http://startupbotswana.com/blog/page/2/ (see the pagination). That’s what I need help with.

realdesigns

Hi,

I’m happy to help you with your requests but they can take up to an hour of my time.

Thank you,

Rd

Default-user

Managed to get it done but still struggling with the archives issue. If you happen to get an hour to spare in your busy schedule, please assist. Thanx

  • Bought between 1 and 9 items
  • Has been a member for 0-1 years
tcoler Purchased

Hi. Just purchased the WOW templates. They are very easy to use and I am almost done completing my mobile site. I am having problems finding the user guide to tell me what to do once I have the templates ready. Can you tell me where to find information on how to get my mobile site up and running?

Thank you Trudy

realdesigns

Hi Trudy,

In your download file you will find a folder called help which contains an html file called index.html. Please open this.

Many thanks

Rd

  • Bought between 10 and 49 items
  • Has been a member for 1-2 years

How do I get the upgraded version. The latest download from TF still has me at version 1.0.

Any help would be appreciated.

Thanks! Rick

realdesigns

Hi,

Where you originally downloaded the theme from. Download it from there again to get v2.

Rd

Default-user

That’s what I did, and got v 1.0. How I know is I uploaded the theme and went to details which shows v 1.0

Rick

Default-user

I guess I need to slow the heck down and enjoy life. I retried the download to another separate folder and all installed as v 2.0

Thanks for your prompt reply and I’ll recommend this awesome software to many people in the Florida area.

All the best! Rick

realdesigns

Hi Rick,

Yeah man try and chill out. :) Bet it’s not too difficult to do in the Florida sun.

Enjoy using it and please rate me!!

Rd

  • Bought between 10 and 49 items
  • Has been a member for 1-2 years

Awesome software RD! I can’t believe its only 35.00! Everyone should have at least 1 of this title. Your support helped me out a lot.

Big Shout Out from the Florida, USA Keep up the great work.

  • Bought between 1 and 9 items
  • Has been a member for 0-1 years

Hi mate, How to change news post category with my own category?

you can visit my web at www.phitagoras.co.id

Thanks

realdesigns

Hi,

Open index-news.php and look for:

// Get posts where category name of posts is news
$query_posts = null;
$query_posts = new WP_Query('category_name=news&posts_per_page='.$post_num.''); 

Change category_name=news to a category name of your choice.

Hope this helps.

Rd

Default-user

Ok thanks mate, it works.. if i have another problem i will ask to you.

Regards

  • Bought between 1 and 9 items
  • Has been a member for 0-1 years

Are your theme will work with RTL websites? I have website on Hebrew. Like http://www.l-law.co.il/

realdesigns

Hi there,

The theme is translation ready but RTL? not sure what does it need to be compliant?!

Thanks,

Rd

Default-user

Thank you for your answer. Do you think it will work properly? When i write – RTL I mean that the website text must be written from right to left. like on this site http://www.l-law.co.il/ Thanks, Alex

realdesigns

Hi,

Send me an email please. I will help.

Thanks, Rd

  • Bought between 10 and 49 items
  • Has been a member for 0-1 years
mcugal Purchased

Hi RD,

I followed the “4.4 Adding the mobile detection script” instructions and my mobile devices are not being directed to “http://www.buildmychurchsite.com/mobile/”

Please assist me so that the mobile re-direct script will work.

Thank you, Mark :stress:

realdesigns

Hi mark,

please describe your setup? One theme or are you switching between your desktop and mobile theme. Where have you added the code?

Rd

  • Bought between 10 and 49 items
  • Has been a member for 0-1 years
mcugal Purchased

Hi RD,

Thank you for your quick response. I’m designing my desktop site using a software called Artisteer (www.artisteer.com). The desktop site can be found at http://www.buildmychurchsite.com.

I loaded your WOW! mySite WordPress Mobile Theme on another WordPress install at http://www.buildmychurchsite.com/mobile/

Then I followed your documentation “4.4 Adding the mobile detection script.” I used the 4.4 instructions (see below) because I have two WordPress installs.

4.4 Adding the mobile detection script

The following script should be added to header.php of your desktop theme if you are using two separate installations of WordPress. [I DID THIS]

<?php
// Include script
include('Mobile_Detect.php');
// Create detection object
$detect = new Mobile_Detect();
// Redirect if mobile detected
if ($detect->isMobile() && !$detect->isIpad() && !$_SESSION['mobileoptout'])
{
header('Location: http://www.your-domain-name.com/mobile/');
$_SESSION['mobileoptout'] = true;
}
?>

Now insert the following script into your functions.php file within the opening <?php and closing ?> tags. This file is found within your theme folder. Be very careful here as your site might break if you make a mistake. Upload it to your themes folder and override the old file. This file is needed to allow session variables in WordPress which are turned off by default. [I DID THIS]

/**
* init_sessions()
*
* @uses session_id()
* @uses session_start()
*/
function init_sessions() {
if (!session_id()) {
session_start();
}
}
add_action('init', 'init_sessions');

The above scripts use the file Mobile_Detect.php which is found in the folder Mobile-Detection-Script at the root of your wowmysite theme files. Make sure the file Mobile_Detect.php is copied to the root of your server and not your mobile theme! [I DID THIS]

I followed each of the 3 steps to the “T” and I haven’t had any success. Please let me know if I missed anything. Thank you again for supporting this issue.

Kind regards, Mark

realdesigns

Hi Mark,

When I load your site on my nokia running windows it works correctly and redirects me to your mobile website. It isn’t working on my iphone. Can you download the latest script from:

https://code.google.com/p/php-mobile-detect/wiki/SourceCode?tm=2

And try again please?

Thanks,

Rd

Default-user
mcugal Purchased

Hi Rd,

I downloaded the latest script “Mobile-Detect-2.6.6.zip” Sorry, I’m not sure what to do with it. There’s 3 folders (examples, namespaced, tests) and 9 files (.gitignore, .php_cs, .travis.yml, composer.json, composer.lock, CONTRIBUTE.MD, LICENSE.txt, Mobile_Detect.php, README.md).

Kind regards, Mark

realdesigns

Hi Mark,

Upload Mobile_Detect.php and replace the current file at the root of your server,

Rd

Default-user
mcugal Purchased

Hi Rd,

I uploaded the Mobile_Detect.php and replaced the current file at the root. Still not working on my iPhone and Android (ics) phones. I’ll await your next instructions. Thank you very much, Mark

realdesigns

Have you added the code at the top of the page before anything else?

Default-user
mcugal Purchased

Hi Rd,

Yes I followed your “WOW! mySite User Documentation v2.0.” I added the provided code to the header.php and the functions.php files. Would it help if you had access to look things over?

Kind regards, Mark

realdesigns

Hi Mark,

Looks like they have updated their code. Try this:

<?php
// Include script
require_once('Mobile_Detect.php');
// Create detection object
$detect = new Mobile_Detect;
// Redirect if mobile detected
if ($detect->isMobile() && !$detect->isTablet() && !$_SESSION['mobileoptout'])
{
header('Location: http://www.your-domain-name.com/mobile/');
$_SESSION['mobileoptout'] = true;
}
?>

If that doesn’t work try pointing your mobile browser here:

http://demo.mobiledetect.net/

Thanks,

Rd

Default-user
mcugal Purchased

Hi Rd,

I made the updates as you instructed. Also pointed my mobile browser to http://demo.mobiledetect.net and that didn’t resolve the issue. I’ve provided my code below. I don’t mind if you’d like to access my account to look things over. :)

This is the code in my header.php file:

<?php
// Include script
require_once('Mobile_Detect.php');
// Create detection object
$detect = new Mobile_Detect;
// Redirect if mobile detected
if ($detect->isMobile() && !$detect->isTablet() && !$_SESSION['mobileoptout'])
{
header('Location: http://www.buildmychurchsite.com/mobile/');
$_SESSION['mobileoptout'] = true;
}
?>
<?php global $wp_locale;
if (isset($wp_locale)) {
    $wp_locale->text_direction = 'ltr';
} ?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset') ?>" />
<title><?php wp_title('|', true, 'right'); bloginfo('name'); ?></title>
<!-- Created by Artisteer v4.1.0.59861 -->
<meta name="viewport" content="initial-scale = 1.0, maximum-scale = 1.0, user-scalable = no, width = device-width">
<!--[if lt IE 9]><script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url') ?>" media="screen" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php
remove_action('wp_head', 'wp_generator');
if (is_singular() && get_option('thread_comments')) {
    wp_enqueue_script('comment-reply');
}
wp_head();
?>
</head>
<body <?php body_class(); ?>>

<div id="art-main">
    <div class="art-sheet clearfix">

<?php if(theme_has_layout_part("header")) : ?>
<header class="art-header<?php echo (theme_get_option('theme_header_clickable') ? ' clickable' : ''); ?>"><?php get_sidebar('header'); ?></header>
<?php endif; ?>

<div class="art-layout-wrapper">
                <div class="art-content-layout">
                    <div class="art-content-layout-row">
                        <?php get_sidebar(); ?>
                        <div class="art-layout-cell art-content">

<strong>This is the code in my functions.php file:</strong>
<pre>
<?php

/**
* init_sessions()
*
* @uses session_id()
* @uses session_start()
*/
function init_sessions() {
if (!session_id()) {
session_start();
}
}
add_action('init', 'init_sessions');

define('THEME_NAME', "Petes3");
global $wp_version;
define('WP_VERSION', $wp_version);
define('THEME_NS', 'twentyten');
define('THEME_LANGS_FOLDER', '/languages');
if (class_exists('xili_language')) {
    define('THEME_TEXTDOMAIN', THEME_NS);
} else {
    load_theme_textdomain(THEME_NS, TEMPLATEPATH . THEME_LANGS_FOLDER);
}

if (function_exists('mb_internal_encoding')) {
    mb_internal_encoding(get_bloginfo('charset'));
}
if (function_exists('mb_regex_encoding')) {
    mb_regex_encoding(get_bloginfo('charset'));
}

if (WP_VERSION < 3.0) {
    add_action('admin_notices', 'theme_unsupported_version_notice1');
    add_action('wp_head', 'theme_unsupported_version_notice2');
    function theme_unsupported_version_notice1() {
        ?>
        <div id="theme-warning" class="error fade"><p><strong><?php _e('Current theme requires WordPress 3.0 or higher.', THEME_NS); ?></strong>
        <?php
        echo sprintf(__('Please <a href="%s">upgrade WordPress</a>, or <a href="%s">use an earlier version of Artisteer (2.6 - 3.1)</a> to create themes for WordPress 2.6-2.9.', THEME_NS),
            'http://codex.wordpress.org/Upgrading_WordPress', 'http://www.artisteer.com/Default.aspx?p=license_info');
        ?>
        </p></div>
        <?php
    }
    function theme_unsupported_version_notice2() {
        ?>
        </head>

        <strong><?php _e('Current theme requires WordPress 3.0 or higher.', THEME_NS); ?></strong>
        <?php
        echo sprintf(__('Please <a href="%s">upgrade WordPress</a>, or <a href="%s">use an earlier version of Artisteer (2.6 - 3.1)</a> to create themes for WordPress 2.6-2.9.', THEME_NS),
            'http://codex.wordpress.org/Upgrading_WordPress', 'http://www.artisteer.com/Default.aspx?p=license_info');
        ?>

        <?php
        die();
    }
    return;
}

theme_include_lib('defaults.php');
theme_include_lib('misc.php');
theme_include_lib('wrappers.php');
theme_include_lib('sidebars.php');
theme_include_lib('navigation.php');
theme_include_lib('shortcodes.php');
theme_include_lib('widgets.php');

function theme_favicon() {
    if (is_file(TEMPLATEPATH . '/favicon.ico')):
        ?><link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" /><?php
    endif;
}

add_action('wp', 'theme_init_layout');
add_action('wp_head', 'theme_favicon');
add_action('wp_head', 'theme_update_page_meta');
add_action('wp_enqueue_scripts', 'theme_update_scripts', 1000);
add_action('wp_enqueue_scripts', 'theme_update_styles', 1000);
add_action('wp_print_scripts', 'theme_update_jquery_scripts', 1000);
add_action('wp_head', 'theme_update_posts_styles', 1000);
add_action('wp_head', 'theme_header_image_script');
add_action('admin_head', 'theme_favicon');
add_action('login_head', 'theme_favicon');

add_filter( 'wp_title', 'theme_update_title',1,3);
add_action('media_upload_image_header', 'wp_media_upload_handler');

function theme_header_rel_link() {
    if (theme_get_option('theme_header_clickable')):
        ?><link rel='header_link' href='<?php echo esc_url(theme_get_option('theme_header_link')); ?>' /><?php
    endif;
}
add_action('wp_head', 'theme_header_rel_link');
add_action('login_head', 'theme_header_rel_link');

add_theme_support('post-thumbnails');
add_theme_support('nav-menus');
add_theme_support('automatic-feed-links');
add_theme_support('post-formats', array('aside', 'gallery'));

function theme_header_image_script() {
    $theme_header_image = theme_get_meta_option(get_queried_object_id(), 'theme_header_image');
    if ($theme_header_image) {
        ?>
        <style>
            .art-header {
                background-image : url(<?php echo $theme_header_image; ?>);
                background-position : center center;
            }
        </style>
        <?php
    }
}

function theme_has_header_image() {
    return (bool) theme_get_meta_option(get_queried_object_id(), 'theme_header_image');
}
function theme_show_flash() {
    return (bool) theme_get_meta_option(get_queried_object_id(), 'theme_header_image_with_flash');
}

function theme_init_layout() {
    global $theme_layout;
    $theme_layout = array(
        'header' => 1,
        'default_sidebar' => 1,

    );
    $page_id = 0;
    if (is_page()) {
       $page_id = (int)theme_get_the_ID(); 
    }
    if (is_home()) {
        $posts_page_id =  (int)get_option( 'page_for_posts');
        if ($posts_page_id > 0) {
            $page_id = $posts_page_id;
        }
    }
    if ($page_id > 0) {
        foreach ($theme_layout as $layout_part_name => $included) {
            $theme_layout[$layout_part_name] = theme_get_meta_option($page_id, 'theme_layout_template_' . $layout_part_name);
        }
    }
    if(is_attachment()) {
        $theme_layout['default_sidebar'] = 0;

    }
}

function theme_has_layout_part($name) {
    global $theme_layout;
    return (bool) theme_get_array_value($theme_layout, $name);
}

if (is_admin()) {
    theme_include_lib('options.php');
    theme_include_lib('admins.php');

    function theme_add_option_page() {
        add_theme_page(__('Theme Options', THEME_NS), __('Theme Options', THEME_NS), 'edit_themes', basename(__FILE__), 'theme_print_options');
    }

    add_action('admin_menu', 'theme_add_option_page');
    add_action('sidebar_admin_setup', 'theme_widget_process_control');
    add_filter('widget_update_callback', 'theme_update_widget_additional');
    add_action('add_meta_boxes', 'theme_add_meta_boxes');
    add_action('save_post', 'theme_save_post');

    if (file_exists(TEMPLATEPATH . '/content/content-importer.php')) {
        include(TEMPLATEPATH . '/content/content-importer.php');
    }
    return;
}

function theme_update_scripts() {
    global $wp_scripts;
    wp_register_script("script.js", get_bloginfo('template_url', 'display') . '/script.js', array('jquery'));
    wp_enqueue_script("script.js");
    wp_register_script("script.responsive.js", get_bloginfo('template_url', 'display') . '/script.responsive.js', array('jquery'));
    wp_enqueue_script("script.responsive.js");

}

function theme_update_jquery_scripts() {
    if(is_admin()) {
        return;
    }
    wp_deregister_script('jquery');
    if (theme_get_option('theme_iclude_scripts_from_cdn')) {
        wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js');
    } else {
        wp_register_script('jquery', get_bloginfo('template_url', 'display') . '/jquery.js');
    }
}

function theme_update_styles() {
    global $wp_styles;
    wp_register_style("style.ie7.css", get_bloginfo('template_url', 'display') . '/style.ie7.css', array(), false, "screen");
    wp_enqueue_style("style.ie7.css");
    $wp_styles->add_data("style.ie7.css", "conditional", "lte IE 7");
    wp_register_style("style.responsive.css", get_bloginfo('template_url', 'display') . '/style.responsive.css', array(), false, "all");
    wp_enqueue_style("style.responsive.css");

}

function theme_update_title($title, $sep, $seplocation) {
    global $wp_query;
    $post_id = get_queried_object_id();
    if ($post_id == 0 && theme_is_home()) {
        $post_id = get_option('page_for_posts');
    }
    $meta_title = get_post_meta($post_id, 'page_title', true);
    if (!empty($meta_title)) {
        $title = ( 'right' == $seplocation ? $meta_title . " $sep " : " $sep " . $meta_title);  
    }
    return $title;
}

function theme_update_page_meta() {
    global $wp_query;
    $res = '';
    $post_id = get_queried_object_id();
    if ($post_id == 0 && theme_is_home()) {
        $post_id = get_option('page_for_posts');
    }
    $description = get_post_meta($post_id, 'page_description', true);
    if (!empty($description)) {
        $res .= "<meta name=\"description\" content=\"$description\">\n";
    }
    $keywords = get_post_meta($post_id, 'page_keywords', true);
    if (!empty($keywords)) {
        $res .= "<meta name=\"keywords\" content=\"$keywords\">\n";
    }
    $metaTags = get_post_meta($post_id, 'page_metaTags', true);
    if (!empty($metaTags)) {
        $res .= $metaTags . "\n";
    }
    if (!empty($res)) {
        echo "\n" . $res;
    }
}

function theme_update_posts_styles() {
    global $wp_query;
    $res = '';
    if(!is_singular()) {
        $post_id = get_queried_object_id();
        if ($post_id == 0 && theme_is_home()) {
            $post_id = get_option('page_for_posts');
        }
        $res .= get_post_meta($post_id, 'theme_head', true);
    }
    while ($wp_query->have_posts()) {
        the_post();
        $post_id = theme_get_the_ID();
        $res .= get_post_meta($post_id, 'theme_head', true);
    }
    if (!empty($res)) {
        echo $res;
    }
    wp_reset_postdata();
}

function theme_get_option($name) {
    global $theme_default_options;
    $result = get_option($name);
    if ($result === false) {
        $result = theme_get_array_value($theme_default_options, $name);
    }
    return $result;
}

function theme_get_widget_meta_option($widget_id, $name) {
    global $theme_default_meta_options;
    if (!preg_match('/^(.*[^-])-([0-9]+)$/', $widget_id, $matches) || !isset($matches[1]) || !isset($matches[2])) {
        return theme_get_array_value($theme_default_meta_options, $name);
    }
    $type = $matches[1];
    $id = $matches[2];
    $wp_widget = get_option('widget_' . $type);
    if (!$wp_widget || !isset($wp_widget[$id])) {
        return theme_get_array_value($theme_default_meta_options, $name);
    }
    if (!isset($wp_widget[$id][$name])) {
        $wp_widget[$id][$name] = theme_get_array_value(get_option($name), $widget_id, theme_get_array_value($theme_default_meta_options, $name));
        update_option('widget_' . $type, $wp_widget);
    }
    return $wp_widget[$id][$name];
}

function theme_set_widget_meta_option($widget_id, $name, $value) {
    if (!preg_match('/^(.*[^-])-([0-9]+)$/', $widget_id, $matches) || !isset($matches[1]) || !isset($matches[2])) {
        return;
    }
    $type = $matches[1];
    $id = $matches[2];
    $wp_widget = get_option('widget_' . $type);
    if (!$wp_widget || !isset($wp_widget[$id])) {
        return;
    }
    $wp_widget[$id][$name] = $value;
    update_option('widget_' . $type, $wp_widget);
}

function theme_get_meta_option($id, $name) {
    global $theme_default_meta_options;
    if (!is_numeric($id)) {
        return theme_get_array_value($theme_default_meta_options, $name);
    }
    $value = get_post_meta($id, '_' . $name, true);
    if ('' === $value) {
        $value = theme_get_array_value(get_option($name), $id, theme_get_array_value($theme_default_meta_options, $name));
        theme_set_meta_option($id, $name, $value);
    }
    return $value;
}

function theme_set_meta_option($id, $name, $value) {
    update_post_meta($id, '_' . $name, $value);
}

function theme_get_post_id() {
    $post_id = theme_get_the_ID();
    if ($post_id != '') {
        $post_id = 'post-' . $post_id;
    }
    return $post_id;
}

function theme_get_the_ID() {
    global $post;
    return $post->ID;
}

function theme_get_post_class() {
    return implode(' ', get_post_class());
}

function theme_include_lib($name) {
    locate_template(array('library/' . $name), true);
}

function theme_get_metadata_icons($icons = '', $class = '') {
    global $post;
    if (!is_string($icons) || theme_strlen($icons) == 0)
        return;
    $icons = explode(",", str_replace(' ', '', $icons));
    if (!is_array($icons) || count($icons) == 0)
        return;
    $result = array();
    for ($i = 0; $i < count($icons); $i++) {
        $icon = $icons[$i];
        switch ($icon) {
            case 'date':
                $result[] = '<span class="art-postdateicon">' . sprintf(__('<span class="%1$s">Published</span> %2$s', THEME_NS),
                                'date',
                                sprintf( '<span class="entry-date" title="%1$s">%2$s</span>',
                                    esc_attr( get_the_time() ),
                                    get_the_date()
                                )
                            ) . '</span>';
            break;
            case 'author':
                $result[] = '<span class="art-postauthoricon">' . sprintf(__('<span class="%1$s">By</span> %2$s', THEME_NS),
                                'author',
                                sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
                                    get_author_posts_url( get_the_author_meta( 'ID' ) ),
                                    sprintf( esc_attr(__( 'View all posts by %s', THEME_NS )), get_the_author() ),
                                    get_the_author()
                                )
                        ) . '</span>';
                break;
            case 'category':
                $categories = get_the_category_list(', ');
                if (theme_strlen($categories) == 0)
                    break;
                $result[] = '<span class="art-postcategoryicon">' . sprintf(__('<span class="%1$s">Posted in</span> %2$s', THEME_NS), 'categories', get_the_category_list(', ')) . '</span>';
                break;
            case 'tag':
                $tags_list = get_the_tag_list('', ', ');
                if (!$tags_list)
                    break;
                $result[] = '<span class="art-posttagicon">' . sprintf(__('<span class="%1$s">Tagged</span> %2$s', THEME_NS), 'tags', $tags_list) . '</span>';
                break;
            case 'comments':
                if (!comments_open() || !theme_get_option('theme_allow_comments'))
                    break;
                theme_ob_start();
                comments_popup_link(__('Leave a comment', THEME_NS), __('1 Comment', THEME_NS), __('% Comments', THEME_NS));
                $result[] = '<span class="art-postcommentsicon">' . theme_ob_get_clean() . '</span>';
                break;
            case 'edit':
                if (!current_user_can('edit_post', $post->ID))
                    break;
                theme_ob_start();
                edit_post_link(__('Edit', THEME_NS), '');
                $result[] = '<span class="art-postediticon">' . theme_ob_get_clean() . '</span>';
                break;
        }
    }
    $result = implode(theme_get_option('theme_metadata_separator'), $result);
    if (theme_is_empty_html($result))
        return;
    return "<div class="\"art-post{$class}icons" art-metadata-icons="">{$result}</div>";
}

function theme_get_post_thumbnail($args = array()) {
    global $post;

    $size = theme_get_array_value($args, 'size', array(theme_get_option('theme_metadata_thumbnail_width'), theme_get_option('theme_metadata_thumbnail_height')));
    $auto = theme_get_array_value($args, 'auto', theme_get_option('theme_metadata_thumbnail_auto'));
    $featured = theme_get_array_value($args, 'featured', theme_get_option('theme_metadata_use_featured_image_as_thumbnail'));
    $title = theme_get_array_value($args, 'title', get_the_title());

    $result = '';

    if ($featured && (has_post_thumbnail())) {
        theme_ob_start();
        the_post_thumbnail($size, array('alt' => '', 'title' => $title));
        $result = theme_ob_get_clean();
    } elseif ($auto) {
        $attachments = get_children(array('post_parent' => $post->ID, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID'));
        if ($attachments) {
            $attachment = array_shift($attachments);
            $img = wp_get_attachment_image_src($attachment->ID, $size);
            if (isset($img[0])) {
                $result = '<img src="' . $img[0] . '" alt="" width="' . $img[1] . '" height="' . $img[2] . '" title="' . $title . '" class="wp-post-image" />';
            }
        }
    }
    if ($result !== '') {
        $result = '<div class="alignleft"><a href="' . get_permalink($post->ID) . '" title="' . $title . '">' . $result . '</a></div>';
    }
    return $result;
}

function theme_get_content($args = array()) {
    $more_tag = theme_get_array_value($args, 'more_tag', __('Continue reading <span class="meta-nav">?</span>', THEME_NS));
    theme_ob_start();
    the_content($more_tag);
    $content = theme_ob_get_clean();
    return $content . wp_link_pages(array(
                'before' => '<p><span class="page-navi-outer page-navi-caption"><span class="page-navi-inner">' . __('Pages', THEME_NS) . ': </span></span>',
                'after' => '</p>',
                'link_before' => '<span class="page-navi-outer"><span class="page-navi-inner">',
                'link_after' => '</span></span>',
                'echo' => 0
            ));
}

function theme_get_excerpt($args = array()) {
    global $post;
    $more_tag = theme_get_array_value($args, 'more_tag', __('Continue reading <span class="meta-nav">?</span>', THEME_NS));
    $auto = theme_get_array_value($args, 'auto', theme_get_option('theme_metadata_excerpt_auto'));
    $all_words = theme_get_array_value($args, 'all_words', theme_get_option('theme_metadata_excerpt_words'));
    $min_remainder = theme_get_array_value($args, 'min_remainder', theme_get_option('theme_metadata_excerpt_min_remainder'));
    $allowed_tags = theme_get_array_value($args, 'allowed_tags',
        (theme_get_option('theme_metadata_excerpt_use_tag_filter')
            ? explode(',',str_replace(' ', '', theme_get_option('theme_metadata_excerpt_allowed_tags')))
            : null));
    $perma_link = get_permalink($post->ID);
    $more_token = '%%theme_more%%';
    $show_more_tag = false;
    $tag_disbalance = false;
    if (post_password_required($post)) {
        return get_the_excerpt();
    }
    if ($auto && has_excerpt($post->ID)) {
        $excerpt = get_the_excerpt();
        $show_more_tag = theme_strlen($post->post_content) > 0;
    } else {
        $excerpt = get_the_content($more_token);
        // hack for badly written plugins
        theme_ob_start();
        echo apply_filters('the_content', $excerpt);
        $excerpt = theme_ob_get_clean();
        global $multipage;
        if ($multipage && theme_strpos($excerpt, $more_token) === false) {
            $show_more_tag = true;
        }
        if (theme_is_empty_html($excerpt))
            return $excerpt;
        if ($allowed_tags !== null) {
            $allowed_tags = '<' . implode('><', $allowed_tags) . '>';
            $excerpt = strip_tags($excerpt, $allowed_tags);
        }
        if (theme_strpos($excerpt, $more_token) !== false) {
            $excerpt = str_replace($more_token, $more_tag, $excerpt);
        } elseif ($auto && is_numeric($all_words)) {
            $token = "%theme_tag_token%";
            $content_parts = explode($token, str_replace(array('<', '>'), array($token . '<', '>' . $token), $excerpt));
            $content = array();
            $word_count = 0;
            foreach ($content_parts as $part) {
                if (theme_strpos($part, '<') !== false || theme_strpos($part, '>') !== false) {
                    $content[] = array('type' => 'tag', 'content' => $part);
                } else {
                    $all_chunks = preg_split('/([\s])/u', $part, -1, PREG_SPLIT_DELIM_CAPTURE);
                    foreach ($all_chunks as $chunk) {
                        if ('' != trim($chunk)) {
                            $content[] = array('type' => 'word', 'content' => $chunk);
                            $word_count += 1;
                        } elseif ($chunk != '') {
                            $content[] = array('type' => 'space', 'content' => $chunk);
                        }
                    }
                }
            }

            if (($all_words < $word_count) && ($all_words + $min_remainder) <= $word_count) {
                $show_more_tag = true;
                $tag_disbalance = true;
                $current_count = 0;
                $excerpt = '';
                foreach ($content as $node) {
                    if ($node['type'] == 'word') {
                        $current_count++;
                    }
                    $excerpt .= $node['content'];
                    if ($current_count == $all_words) {
                        break;
                    }
                }
                $excerpt .= '…'; // ...
            }
        }
    }
    if ($show_more_tag) {
        $excerpt = $excerpt . ' <a class="more-link" href="' . $perma_link . '">' . $more_tag . '</a>';
    }
    if ($tag_disbalance) {
        $excerpt = force_balance_tags($excerpt);
    }
    return $excerpt;
}

function theme_get_search() {
    theme_ob_start();
    get_search_form();
    return theme_ob_get_clean();
}

function theme_is_home() {
    return (is_home() && !is_paged());
}

function theme_404_content($args = '') {
    $args = wp_parse_args($args, array(
        'error_title' => __('Not Found', THEME_NS),
        'error_message' => __('Apologies, but the page you requested could not be found. Perhaps searching will help.', THEME_NS),
        'focus_script' => '<script type="text/javascript">jQuery(\'div.art-content input[name="s"]\').focus();</script>'
            )
    );
    extract($args);
    theme_post_wrapper(
            array(
                'title' => $error_title,
                'content' => '<p class="center">' . $error_message . '</p>' . "\n" . theme_get_search() . $focus_script
            )
    );

    if (theme_get_option('theme_show_random_posts_on_404_page')) {
        theme_ob_start();
        echo '<h4 class="box-title">' . theme_get_option('theme_show_random_posts_title_on_404_page') . '</h4>';
        ?>
        </pre><ul>
        <?php
        global $post;
        $rand_posts = get_posts('numberposts=5&orderby=rand');
        foreach ($rand_posts as $post) :
            ?>
                <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
        <?php endforeach; ?>
        </ul>
        <?php
        theme_post_wrapper(array('content' => theme_ob_get_clean()));
    }
    if (theme_get_option('theme_show_tags_on_404_page')) {
        theme_ob_start();
        echo '<h4 class="box-title">' . theme_get_option('theme_show_tags_title_on_404_page') . '</h4>';
        wp_tag_cloud('smallest=9&largest=22&unit=pt&number=200&format=flat&orderby=name&order=ASC');
        theme_post_wrapper(array('content' => theme_ob_get_clean()));
    }
}

function theme_page_navigation() {
    global $wp_query;
    $total_pages = $wp_query->max_num_pages;
    if($total_pages > 1) {
        echo theme_stylize_pagination(paginate_links(array(
            'base'  =>  str_replace(PHP_INT_MAX, '%#%', get_pagenum_link(PHP_INT_MAX)),
            'format' => '',
            'current'   =>  max(1, get_query_var('paged')),
            'total'     =>  $total_pages
        )));
    }
}

function theme_post_navigation($args = '') {
    $args = wp_parse_args($args, array('wrap' => true, 'prev_link' => false, 'next_link' => false));
    $prev_link = $args['prev_link'];
    $next_link = $args['next_link'];
    $content = '';
    $prev_align = 'left';
    $next_align = 'right';
    if (is_rtl()) {
        $prev_align = 'right';
        $next_align = 'left';
    }
    if ($prev_link || $next_link) {
        $content = <<<EOL
<div class="navigation">
    <div class="align{$prev_align}">{$prev_link}</div>
    <div class="align{$next_align}">{$next_link}</div>
 </div>
EOL;
    }
    if ($args['wrap']) {
        theme_post_wrapper(array('content' => $content));
    } else {
        echo $content;
    }
}

function theme_get_previous_post_link($format = '« %link', $link = '%title', $in_same_cat = false, $excluded_categories = '') {
    return theme_get_adjacent_post_link($format, $link, $in_same_cat, $excluded_categories, true);
}

function theme_get_next_post_link($format = '%link »', $link = '%title', $in_same_cat = false, $excluded_categories = '') {
    return theme_get_adjacent_post_link($format, $link, $in_same_cat, $excluded_categories, false);
}

function theme_get_adjacent_image_link($prev = true, $size = 'thumbnail', $text = false) {
    global $post;
    $post = get_post($post);
    $attachments = array_values(get_children(array('post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID')));

    foreach ($attachments as $k => $attachment)
        if ($attachment->ID == $post->ID)
            break;

    $k = $prev ? $k - 1 : $k + 1;

    if (isset($attachments[$k]))
        return wp_get_attachment_link($attachments[$k]->ID, $size, true, false, $text);
}

function theme_get_previous_image_link($size = 'thumbnail', $text = false) {
    $result = theme_get_adjacent_image_link(true, $size, $text);
    if ($result)
        $result = '« ' . $result;
    return $result;
}

function theme_get_next_image_link($size = 'thumbnail', $text = false) {
    $result = theme_get_adjacent_image_link(false, $size, $text);
    if ($result)
        $result .= ' »';
    return $result;
}

function theme_get_adjacent_post_link($format, $link, $in_same_cat = false, $excluded_categories = '', $previous = true) {
    if ($previous && is_attachment())
        $post = & get_post($GLOBALS['post']->post_parent);
    else
        $post = get_adjacent_post($in_same_cat, $excluded_categories, $previous);

    if (!$post)
        return;

    $title = strip_tags($post->post_title);

    if (empty($post->post_title))
        $title = $previous ? __('Previous Post', THEME_NS) : __('Next Post', THEME_NS);

    $title = apply_filters('the_title', $title, $post->ID);
    $short_title = $title;
    if (theme_get_option('theme_single_navigation_trim_title')) {
        $short_title = theme_trim_long_str($title, theme_get_option('theme_single_navigation_trim_len'));
    }
    $date = mysql2date(get_option('date_format'), $post->post_date);
    $rel = $previous ? 'prev' : 'next';

    $string = '<a href="' . get_permalink($post) . '" title="' . esc_attr($title) . '" rel="' . $rel . '">';
    $link = str_replace('%title', $short_title, $link);
    $link = str_replace('%date', $date, $link);
    $link = $string . $link . '</a>';

    $format = str_replace('%link', $link, $format);

    $adjacent = $previous ? 'previous' : 'next';
    return apply_filters("{$adjacent}_post_link", $format, $link);
}

function theme_stylize_pagination($pagination) {
    if ($pagination) {
        $pagination = '<div class="art-pager">' . str_replace(array('current', 'dots'), array('current active', 'dots more'), $pagination) . '</div>';        
    }
    return $pagination;
}

function theme_comment_reply_link_filter($link) {
    return str_replace('class=\'', 'class=\'art-button ', $link);
}

add_filter('comment_reply_link', 'theme_comment_reply_link_filter');

function theme_comment($comment, $args, $depth) {
    $GLOBALS['comment'] = $comment;
    switch ($comment->comment_type) :
        case '' :
        ?>
        <li comment_class=""> id="li-comment-<?php comment_ID(); ?>">
            <div class="art-comment <?php echo $comment->comment_type ?> clearfix" id="comment-<?php comment_ID() ?>">
    <div class="art-comment-avatar"><?php echo theme_get_avatar(array('id' => $comment, 'size' => 80)); ?></div>
    <div class="art-comment-inner">
        <div class="art-comment-header comment-meta commentmetadata"><?php printf(__('%s on ', THEME_NS), get_comment_author_link($comment->comment_ID)); ?>
<a href="<?php echo esc_url(get_comment_link($comment->comment_ID)); ?>"><?php printf(__('%1$s at %2$s', THEME_NS), get_comment_date(), get_comment_time()); ?></a>
<?php edit_comment_link(__('(Edit)', THEME_NS)); ?></div>
        <div class="art-comment-content comment-body"><?php if ($comment->comment_approved == '0') : ?>
    <em><?php _e('Your comment is awaiting moderation.', THEME_NS); ?></em>
    <br />
<?php endif; ?>
<?php comment_text(); ?></div>
        <div class="art-comment-footer reply"><?php comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth']))); ?></div>
    </div>
</div>
            <?php
            break;
        case 'pingback' :
        case 'trackback' :
            ?>
        </li><li class="post pingback">
            <div class="art-comment <?php echo $comment->comment_type ?> clearfix">
                <div class="art-comment-content comment-body"><?php _e('Pingback:', THEME_NS); ?> <?php comment_author_link(); ?><?php edit_comment_link(__('(Edit)', THEME_NS), ' '); ?></div>
            </div>
            <?php
            break;
    endswitch;
}

function theme_get_comments() {
    if (!theme_get_option('theme_allow_comments')) return '';
    theme_ob_start();
    comments_template();
    return theme_ob_get_clean();
}

function theme_get_avatar_filter($avatar) {
    return str_replace('src=', 'onerror=\'this.src="'.get_template_directory_uri().'/images/no-avatar.jpg"\' src=', $avatar);
}
add_filter('get_avatar', 'theme_get_avatar_filter');

function theme_get_avatar($args = '') {
    $default = get_option('avatar_default');
    if (empty($default) || $default === 'mystery') {
        $default = get_template_directory_uri() . '/images/no-avatar.jpg';
    }
    $args = wp_parse_args($args, array('id' => false, 'size' => 96, 'default' => $default, 'alt' => false, 'url' => false));
    extract($args);
    $result = get_avatar($id, $size, $default, $alt);
    if ($result) {
        if ($url) {
            $result = '<a href="' . esc_url($url) . '">' . $result . '</a>';
        }
    }
    return $result;
}

if (!function_exists('get_post_format')) {//for WP 3.0
    function get_post_format() {
        return null;
    }
}

if (!function_exists('get_queried_object_id')) {//for WP 3.0
    function get_queried_object_id() {
        global $wp_query;
        return $wp_query->get_queried_object_id();
    }
}

function theme_get_next_post() {
    static $ended = false;
    if (!$ended) {
        if (have_posts()) {
            the_post();
            get_template_part('content', get_post_format());
        } else {
            $ended = true;
        }
    }
}

$theme_ob_stack = array();

function theme_ob_handler($str) {
    global $theme_ob_stack;
    end($theme_ob_stack);
    $theme_ob_stack[key($theme_ob_stack)] .= $str;
    return '';
}

function theme_ob_start() {
    global $theme_ob_stack;
    array_push($theme_ob_stack, '');
    ob_start('theme_ob_handler');
}

function theme_ob_get_clean() {
    global $theme_ob_stack;
    ob_end_flush();
    return array_pop($theme_ob_stack);
}

Also, I've updated the Mobile_Detect.php file at the root as instructed.

Thank you,
Mark</li></div></div></div></div></div></div>

Default-user
mcugal Purchased

Sorry, forgot to close the first tag

Default-user
mcugal Purchased

”/pre” tag

realdesigns

Hi,

I don’t know why this is not working. I can suggest trying a plugin.

I’ll have a look for a suitable one.

Rd

realdesigns

What version of php is your web host using?

Thanks,

Default-user
mcugal Purchased

Hi Rd,

I will install the following plugin http://wordpress.org/plugins/wp-mobile-detect/ that you suggested. I appreciate all your help! As soon as I work with it for a bit, I will let you know how things worked out.

Kind regards,

Mark

realdesigns

We’ll find a solution!

Default-user
mcugal Purchased

Hi Rd,

My initial testing is very successful! The plugin works as advertised. My guess is the Artisteer generated theme is causing the mobile detection issues. In the next day or so, I will test your theme with a non-Artisteer theme and see if it works with your provided documentation. I will report back to you my findings to assist you with feedback. RD….You provide wonderful support and I commend you for being very patient with me :)

Thank you! Mark

realdesigns

You’re very welcome. Thank you Mark.

  • Bought between 1 and 9 items
  • Has been a member for 2-3 years

I am having a hard time to figure out how to get a home page for my mobile site. go to chadthebailguy.com on desktop its fine but then go there on mobile phone and there is no home page. Also im having trouble showing different content for mobile and desktop site. when i make changes to activated wow theme it changes my pages for my desktop theme, please help me.

what im trying to do is have my mhome page be my home page for wow mobile where it show buttons. on home page

Default-user

also, how do i get the call button on the bottom to appear on my mobile homepage. and what is the best way to select a mobile homepage. when i go to settings / reading and select home page from there it will change my desktop homepage

realdesigns

Hi there,

If you have a desktop website and use WOW! for mobile you can only set a different homepage for your desktop website. WOW! uses the file index.php for its homepage. If you want to change its layout you will need to change this page. You can’t assign two homepages ie one for mobile and one for desktop – the option doesn’t exist in WordPress.

This post will help you:

I have a different page that I use for my desktop homepage other than ‘Latest Posts’. What can I do to make it work with my mobile theme?

So your desktop theme uses a homepage which is not your Latest Posts?

You will need to add some code to make this work. Add the following to both your desktop functions.php and your mobile functions.php.

1. In the mobile theme functions.php file you will need to add update_option( ‘show_on_front’, ‘posts ’ );

This will set index.php as your mobile theme’s homepage.

Now to change the homepage of your desktop theme to what you want.

2. In your desktop theme functions.php file you will have to add $about = get_page_by_title( ‘about’ ); update_option( ‘page_on_front’, $about->ID ); update_option( ‘show_on_front’, ‘page’ );

‘about’ will be the page name that you are using as the homepage for your desktop theme.

I hope this helps.

Rd

  • Bought between 1 and 9 items
  • Has been a member for 1-2 years
utax Purchased

Hi there,

Is there a way to have an admin email in the general settings, and a different email address on the contact page?

We would like admin/wordpress emails going to the IT dept and any leads generated from the contact form to sales – rather than all emails from the contact form sent to the email address from the general settings.

Thanks, Nicola

Default-user
utax Purchased

Also, another unrelated query – the “Find out more” function we’d like to be displayed on the homepage. However, when we select “display” in the options it doesn’t display on the homepage- but seems to work fine when selected for the contact page.

Any ideas?

realdesigns

Hi,

You can have a different email in contact. Please open the contact template.php and edit the line where it includes the admin email.

For the Find out more problem how are you displaying your homepage?

This post will help you:

I have a different page that I use for my desktop homepage other than ‘Latest Posts’. What can I do to make it work with my mobile theme?

So your desktop theme uses a homepage which is not your Latest Posts?

You will need to add some code to make this work. Add the following to both your desktop functions.php and your mobile functions.php.

1. In the mobile theme functions.php file you will need to add update_option( ‘show_on_front’, ‘posts ’ );

This will set index.php as your mobile theme’s homepage.

Now to change the homepage of your desktop theme to what you want.

2. In your desktop theme functions.php file you will have to add $about = get_page_by_title( ‘about’ ); update_option( ‘page_on_front’, $about->ID ); update_option( ‘show_on_front’, ‘page’ );

‘about’ will be the page name that you are using as the homepage for your desktop theme.

Hope this helps.

Rd

Default-user
utax Purchased

Hi,

Thanks for the quick reply.

  • The Contact Form Fix has worked – thank you!
  • We couldn’t get the Homepage “Find out more” Fix to work. We tried adapting your code – you are right that we are using a static page (Home) as our homepage, but our mobile site is standalone (the desktop site is a completely separate WordPress installation). Could you suggest code for this type of site? If it would help, please see mobile.policy-store.co.uk where we are doing the development.
  • Another unrelated problem: how can we change the Copyright at the bottom? It needs to be different from the site name.

Regards

realdesigns

No problem.

If you have a separate Wordpress installation for your mobile theme I would suggest using the one click installation. This will set up your pages and posts and you can use this as a basis to build your mobile website. You’ll be able to see how things are setup too.

Please open footer.php to change the copyright notice.

Thanks,

Rd

realdesigns

Make a backup first before making any significant changes to your website!

  • Bought between 1 and 9 items
  • Has been a member for 1-2 years
  • New Zealand

Am I able to add this to an existing wordpress business directory to make it mobile optimized?

realdesigns

Hello

What are you trying to do?

Default-user

What!? it’s in the questions I asked?

realdesigns

Have you got a WordPress directory website for desktop already? You want WOW! to display the same listings too, right?

Rd

Default-user

Hi, Yes I’m looking at various Wordpress directories to make a mobile directory but none of them offer a very attractive mobile or responsive version. I was thinking about using WOW to give the directory a nice look and feel for users. Any suggestions?

realdesigns

Hi, wow! will enable you to display posts and pages from your desktop website very easily but if you need to display specific directory content which is generated using custom queries from your desktop theme you will need to spend some time adapting the code from your desktop theme to wow! You would need a developer to do this which would take a little time and not work straight out of the box.

Hope this helps.

Rd

  • Bought between 100 and 499 items
  • Has been a member for 6-7 years

Is this compatible with WordPress 3.6 ?

realdesigns

Yes it is.

  • Bought between 10 and 49 items
  • Has been a member for 2-3 years
j4ke90 Purchased

hello, I have installed the theme in manual version. I want to know how can I change the home page mode mobile. The desktop theme I use has its own home page 1, I would like the mobile version has a home page 2. how can I do?

realdesigns

Hello,

Many thanks for purchasing WOW!

So your desktop theme uses a homepage which is not your Latest Posts?

You will need to add some code to make this work. Add the following to both your desktop functions.php and your mobile functions.php.

1. In the mobile theme functions.php file you will need to add update_option( ‘show_on_front’, ‘posts ’ );

This will set index.php as your mobile theme’s homepage.

Now to change the homepage of your desktop theme to what you want.

2. In your desktop theme functions.php file you will have to add $about = get_page_by_title( ‘about’ ); update_option( ‘page_on_front’, $about->ID ); update_option( ‘show_on_front’, ‘page’ );

‘about’ will be the page name that you are using as the homepage for your desktop theme.

That’s it! Give it a go.

Rd

Default-user
j4ke90 Purchased

hi, I made a number of tests and research, the only code that works is this

add_action( ‘after_setup_theme’, ‘change_theme_frontpage’ ); function change_theme_frontpage() { $frontpage = get_page(2); // 2 is the id of the page you want to show update_option(‘show_on_front’, ‘page’); // show on front a static page update_option(‘page_on_front’, $frontpage->ID); }

http://wordpress.org/support/topic/setting-different-static-home-pages-for-different-themes

replacing the number 2 with the id of the page or with ‘posts’, which shows the last post. Hello and Thanks anyway for the help!!

realdesigns

Hi,

Thanks for this.

You can assign a different homepage for your desktop website but not for your mobile website. If you would lie to have a different homepage for mobile please modify index.php from within your WOW! theme folder. Does this make sense?!

Rd

  • Bought between 50 and 99 items
  • Has been a member for 2-3 years

Is there a way to have the button shortcode open the link in a new window?

realdesigns

Hi,

Links shouldn’t really open in a new window. Especially not on mobile. I would advise against it. Think of this as a mobile experience first rather than desktop.

Rd

  • Bought between 10 and 49 items
  • Has been a member for 3-4 years
cfcnet Purchased

Hi i was just wondering if there was a tutorial to get the slider working. I’m struggling to make it happen.

PS

realdesigns

Hi,

Have you been able to follow the instructions. Where are you getting lost?

Rd

by
by
by
by
by
by