Forums

[resolved] PodPress player showing on home page - can't remove it (11 posts)

  1. madhatterdesign
    Member
    Posted 9 months ago #

    So the player is showing up on the home page, just above an area that displays text from the About page. See it here: http://artsradionetwork.com/ I have no idea where it's coming from. I've played with all the settings, deactivated all other plugins, and still it shows up there when PodPress is activated.

    We're using podpress version 8.8.10.9 and WordPress 3.1.3. The theme is called TouchSense. Any help is greatly appreciated.

  2. ntm
    Member
    Posted 9 months ago #

    Well, it looks like you or co-author has attached an mp3 file with podPress to this page (or post) which you can find currently when you insert the URL above into address bar of a browser. (The "About us" page has no player at the moment.)
    You should be able to remove that player after you log-in and edit this page or post. Below the post/page editor bow should be a further box which has the word podPress in the title. you can remove the URL or the media file there. Or you could choose the option "Disable Preview Player: " or "Disable Player: " to disable the player in this post. Further you have the possibility to choose "Feed only: " which will hide the podPress elements on the web site but still attaches the media file to the news feeds.

    Regards,
    Tim

  3. madhatterdesign
    Member
    Posted 9 months ago #

    Hi Tim! Thanks for your reply.

    I logged in and tried to edit the About Us page, which (in the theme options) is set to appear on the home page. There is no podcast file associated with the About Us page, nor is there an option to disable the player on this page.

    Could this be an issue relating to this particular theme? There's nothing in the theme's home page code that should be inserting the player - no widget, no page or post, nothing.

    I will try the Feed only option and see if it allows for the functionality we need on the rest of the site.

    Thanks again for your help!

  4. ntm
    Member
    Posted 9 months ago #

    Could this be an issue relating to this particular theme?

    Yes, that is likely.

    The media file on the page (Loggerhead.mp3) is the file from the last post (Loggerhead MarineLife Center). Maybe it is some kind of a feature of the theme to show the last post on the front page. But for some reason it shows the text of the about page on the front page. One reason for that behaviour might that the "Loggerhead MarineLife Center" post has no manually written excerpt and because of that the theme takes a different text for instance the "About us" text instead.
    Please, check your settings for something which might control the front page behaviour. Maybe write an excerpt for this post and see whether the themes takes it instead of the "About us" text.

    Is it possible that the front page has an area where it shows excerpts of the most recent posts? If there is such a feature and the post has no excerpt then maybe the theme shows usually nothing. But since the last post is one with an podPress attachment only the podPress attachment is visible. podPress attachments are visible in excerpts and posts by default. There is an option on the General Settings page of podPress (section Post Content) which can be used to change that.
    Maybe try to show the podPress content only in posts. (option: "Show the podPress elements in the content sections and the excerpts?")

    Do you use the [display_podcast] placeholder in your regular posts? (If you do that try what is happening when you do not use it in your last post.)

    If nothing of the above is helping then it would be interesting to take a look into the index.php file of your theme.

    Regards,
    Tim

  5. madhatterdesign
    Member
    Posted 9 months ago #

    Tim, thanks so much. You've been super helpful.

    I did manage to at least get the player down below the blurb on the home page by changing the player position setting, but changing the player to not show in excerpts didn't work. I'm pasting the index.php code here. I'm totally stumped on this!

    Thanks again for your help!

    <?php get_header(); ?>
                <div id="bodyWrapper">
                    <div id="centerWrap">
                    <?php if (is_home() && get_option('dm_ts_slider') == "DM Slider") { ?>
                        <?php if (function_exists('dm_slider')) {dm_slider();} ?>
                    <?php } elseif(is_home() && get_option('dm_ts_slider') == "Nivo Slider") { ?>
                        <div id="dm_nivo_wrap">
                            <?php dm_nivo_slider(); ?>
                        </div>
                    <?php } elseif(is_home() && get_option('dm_ts_slider') == "Static Image") { ?>
                        <div style="margin: 0 auto; text-align: center;">
                            <img src="<?php echo get_option("dm_ts_home_stat_img")?>" alt="" />
                        </div>
                    <?php }; ?>
                    <div id="contentWrap">
                        <?php if (is_home() && get_option('dm_ts_home_capt_mid') ) { ?>
                        <div id="midCaption" <?php if (get_option('dm_ts_slider') == "No Slider") {echo 'style="margin:0px !important; padding-bottom:29px;"';}; ?>>
                            <?php if (get_option('dm_ts_home_capt_icon')) { ?>
                                <img src="<?php echo get_option('dm_ts_home_capt_icon'); ?>" alt="<?php bloginfo('name'); ?>"/>
                            <?php }; ?>
    
                            <p style="width: <?php
                            if (get_option('dm_ts_home_capt_icon') && get_option('dm_ts_home_capt_button')) {echo '610';}
                            elseif (!get_option('dm_ts_home_capt_icon') && get_option('dm_ts_home_capt_button')) {echo '670';}
                            elseif (get_option('dm_ts_home_capt_icon') && !get_option('dm_ts_home_capt_button')) {echo '820';}
                            else {echo '900';};
                            ?>px; font-size:<?php echo get_option('dm_ts_home_capt_mid_size'); ?>px">
                            <?php echo get_option('dm_ts_home_capt_mid'); ?>
                            </p>
    
                            <?php if (get_option('dm_ts_home_capt_button')) { ?>
                                <a href="<?php echo get_option('dm_ts_home_capt_button_link'); ?>" class="bigButton"><span><?php echo get_option('dm_ts_home_capt_button'); ?></span> </a>
                            <?php }; ?>
    
                            <div class="clearfix"></div>
                        </div>
                        <div class="separator40"></div>
                        <?php } elseif (is_home() && !get_option('dm_ts_home_capt_mid')) { ?>
                        <div style="height:50px;"></div>
                        <?php } ?>
    
        <?php if (get_option('dm_ts_home_layout') == 'Blog Classic') { ?>
                <?php
                include("dm.blog.classic.php");
                ?>
        <?php } elseif (get_option('dm_ts_home_layout') == 'Blog Modern') { ?>
                <?php
                include("dm.blog.modern.php");
                ?>
        <?php } elseif (get_option('dm_ts_home_layout') == 'Homepage Corporate') { ?>
                <?php
                $page_id2 = get_option( 'dm_ts_home_pg' );
                show_post($page_id2);
                ?>
        <?php } elseif (get_option('dm_ts_home_layout') == 'Homepage Mix Classic') { ?>
                <?php
                $page_id2 = get_option( 'dm_ts_home_pg' );
                show_post($page_id2);
                ?><br/><br/><div class="separatorBC40"></div><?php
                include("dm.blog.classic.php");
                ?>
        <?php } elseif (get_option('dm_ts_home_layout') == 'Homepage Mix Modern') { ?>
                <?php
                $page_id2 = get_option( 'dm_ts_home_pg' );
                show_post($page_id2);
                ?><br/><br/><div class="separatorBC40"></div><?php
                include("dm.blog.modern.php");
                ?>
        <?php } else { ?>
                <?php
                $page_id2 = get_option( 'dm_ts_home_pg' );
                show_post($page_id2);
                ?>
        <?php } ?>
    </div>
    </div>
    </div>
    <?php get_footer(); ?>
  6. ntm
    Member
    Posted 9 months ago #

    Thank you for posting the code of the index.php!

    If your home page has a certain layout setting, I would like to see the code of one of the other file of your theme too. Could you please post the file connect to the layout setting ?:
    Blog Classic - dm.blog.classic.php
    Blog Modern - dm.blog.modern.php
    Homepage Mix Classic - dm.blog.classic.php
    Homepage Mix Modern - dm.blog.modern.php
    Please, use one of Pastebin services (e.g. pastebin.com) to post the code.

    Or is the setting: Homepage Corporate?

  7. madhatterdesign
    Member
    Posted 9 months ago #

    Yes, it's Homepage Corporate. Is there a separate file for that? I can't seem to find one.

    Thank you!

  8. ntm
    Member
    Posted 9 months ago #

    No, there is probably not separate file. But there is a function called show_post($page_id2). I would like to know what this function does. This function is in one other .php file of the theme. I don't know which one.
    But you may search through the php files for the phrase "function show_post(". You may use a software for that task. I'm using the text editor Scite (Wiki:Scite) do to something like that. It has an option in the Search Menu which makes it possible to search through all files of a certain type in a folder and the sub folders at once. But you can use every text editor to search through one file.
    If you know which file contains this function then post it. Or do you know where I can take a look at the code of theme?

  9. ntm
    Member
    Posted 9 months ago #

    You should start the search in the functions.php. That is usually the file such functions.

  10. ntm
    Member
    Posted 9 months ago #

    The function.php of this theme contains these lines of code (1880-1884):

    function show_post( $ID ) {
      $post = get_page( $ID, 'edit' );
      $content = apply_filters('the_content', $post->post_content);
      echo $content;
    }

    Add Global $post; in the line below function show_post(. It should look like this:

    function show_post( $ID ) {
      Global $post;
      $post = get_page( $ID, 'edit' );
      $content = apply_filters('the_content', $post->post_content);
      echo $content;
    }

    You can use the editor in Site Admin > Appearnce > Themes > Editor. Or you download the functions.php file via FTP from your blog to your local computer and use a text editor (not MS Word or other Office software) to edit the file. Afterwards upload the file again. (You can also use the second way if something goes wrong while editing the functions.php file with the WP-own editor.)

    This should resolve the problem.

  11. madhatterdesign
    Member
    Posted 9 months ago #

    That worked beautifully! Thank you so much for all your help!!

Reply

You must log in to post.

About this Topic