Redirect homepage & blog page

Hi Themeco,

Could you advise me on the best way to do this?

I want my landing page to become this -> http://www.honestyforyourskin.co.uk/get-great-skin-now-free-email-course-signup/

At the moment i have the ethos blog landing page.

I understand i can do use redirects to switch traffic from my homepage to my landing page…

However, i would need to add a blog option on my home menu or change logo link to blog link. As the blog link is currently my homepage address. How would I go about doing this?

Thanks so much,

Cheryl

Hi Cheryl,

Create a page that will be used as your blog, you can call this page blog, news or whatever you want.

After that go to Wp Admin > Settings > Reading

Select Static Page as your home page which you will select your landing page.

And select the page you just create for the blog as your latest posts page.

Hope it helps!

Thank you Joao! Works a treat and so easy to setup!

1 last question - how can I direct my header logo to my blog page www.honestyforyourskin.co.uk/skincare-blog?

Thanks so much,

Cheryl

Hi Cherly,

You will have to install and activate the child theme for this.

Once the child theme is activated, you will have to login through FTP and go to wp-content/theme/x-child and make the following directory path \framework\legacy\cranium\headers\views\global and create the file _brand.php inside the global directory and place this code in the file:

<?php

// =============================================================================
// VIEWS/GLOBAL/_BRAND.PHP
// -----------------------------------------------------------------------------
// Outputs the brand.
// =============================================================================

$site_name        = get_bloginfo( 'name' );
$site_description = get_bloginfo( 'description' );
$logo             = x_make_protocol_relative( x_get_option( 'x_logo' ) );
$site_logo        = '<img src="' . $logo . '" alt="' . $site_description . '">';

?>

<?php echo '<h1 class="visually-hidden">' . $site_name . '</h1>'; ?>

<a href="<?php echo get_permalink( get_option( 'page_for_posts' ) ); ?>" class="<?php x_brand_class(); ?>" title="<?php echo $site_description; ?>">
  <?php echo ( $logo == '' ) ? $site_name : $site_logo; ?>
</a>

Hope this helps.

Hi Jade,

I’ve added this code, but there’s no change. Can you help? Is there information in this code i need to change?

Thanks so much,

Cheryl

Hi,

Please make sure you have created the correct file path in the x-child directory which is framework/legacy/cranium/headers/views/global then place the _brand.php there. Most of the time, the code will not take effect is the file path is not correct.

You don’t need to change anything in the code. In case you are still not able to get it work, please provide the admin and the FTP details in a secure note.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.

Hi there,

By FTP information my colleague meant a servername/username/pass to access the site files via FTP protocol. If you have problems regarding that you can contact your hosting service provider to give you the information you need.

I want to suggest an easier but less conventional way of doing what you want. Please add the Javascript code below to X > Launch > Options > JS:

jQuery('.x-brand.img').attr('href', 'http://www.honestyforyourskin.co.uk/skincare-blog');

That will do the same thing. Thank you.