Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Need some custom work on Wordpress Theme WordPress

  • SOLVED

Hi,

My first post there so not quite sure how this (wpquestions) all works, so here goes:


I have the following website:


[[LINK href="http://deviantmind.co.uk"]]Deviant Mind[[/LINK]]


There is a music icon on the top right hand side of the page which only plays on the home page. I would like this to feature at the top of every page aling with the social media icons.

The guy I purchased the theme from on ThemeForest tells me it's to do with the .index.php but I need to know how I can set this for all pages.

My php skills are limited so please bear this in mind, if someome can tell me exactly what to do I would be greatful.

Thanks,

Michael

Answers (4)

2012-05-14

Romel Apuya answers:

the code must have a condition to just play the music on homepage.
can you post the code on your header.php?

or i send you a PM. cheers,


mjcombe comments:


index.php


<?php
/**
* The main template file.
*
* @package WordPress
*/

session_start();

if(isset($_SESSION['pp_homepage_slideshow_style']))
{
$pp_homepage_slideshow_style = $_SESSION['pp_homepage_slideshow_style'];
}
else
{
$pp_homepage_slideshow_style = get_option('pp_homepage_slideshow_style');
}
if(empty($pp_homepage_slideshow_style))
{
$pp_homepage_slideshow_style = 'flow';
}

if($pp_homepage_slideshow_style == 'youtube_video')
{
$_GET['mode'] = 'f';
}


get_header();

$pp_homepage_slideshow_cat = get_option('pp_homepage_slideshow_cat');
$homepage_items = -1;

$args = array(
'post_type' => 'attachment',
'numberposts' => $homepage_items,
'post_status' => null,
'post_parent' => $pp_homepage_slideshow_cat,
'order' => 'ASC',
'orderby' => 'menu_order',
);
$all_photo_arr = get_posts( $args );


include (TEMPLATEPATH . "/templates/template-slider-".$pp_homepage_slideshow_style.".php");

if($pp_homepage_slideshow_style != 'fullscreen')
{
get_footer();
}
?>



Screenshot of admin screen attached.

Thanks.