• Hi….i am using the mystique theme and wanted to use the newsticker from 18elements.com .. they say that i have to paste the php code in my template file …. <?php if ( function_exists(‘insert_newsticker’) ) { insert_newsticker(); } ?> ….. if i paste it into header.php … it shows up on every page and i cant insert php in the wordpress editor ….. my question is what is the template file which i should use so that the news ticker appears only on the homepage

Viewing 5 replies - 1 through 5 (of 5 total)
  • go to your theme settings – the advanced page, and in the user functions field paste:

    <?php
    
    function newsticker(){
      if(is_home()) insert_newsticker();
    }
    add_action('mystique_header_end', 'newsticker');
    Thread Starter irteza

    (@irteza)

    hi thanks for the quick reply…..i am sorry if i appear to be a complete dumba** … i pasted the code

    <?php
    
    function newsticker(){
      if(is_home()) insert_newsticker();
    }
    add_action('mystique_header_end', 'newsticker'); ?>

    ..it doesn’t do anything…. maybe because i have identified my homepage as a static page….name of the page is home….. and could you also plsss tell me how to switch off the font increase/decrease option………….thanks a lot……theme is awesome by the way…many thanks

    EDIT: This is the page which i am using as home.. post.php?post=36 ..
    i have set up a static home page…thanks again

    then change is_home() with is_front()

    also besides mystique_header_end there are other locations where you can insert this:

    mystique_before_main
    mystique_before_primary

    good luck

    Thread Starter irteza

    (@irteza)

    got it … just used is_page(36) instead of is_home ….would still like to know how to turn the increase font size option off.

    umm..one more thing…its showing the news ticker at the top of the content area…anyway to change its position …

    Thread Starter irteza

    (@irteza)

    hi thanks i got it done… used mystique_after_primary … thanks a lot …still need to know how to switch of the font size changer thingy off from the website…thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Mystique theme help’ is closed to new replies.