WordPress.org

Forums

Mystique theme help (6 posts)

  1. irteza
    Member
    Posted 4 years ago #

    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

  2. digitalnature
    Member
    Posted 4 years ago #

    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');
  3. irteza
    Member
    Posted 4 years ago #

    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

  4. digitalnature
    Member
    Posted 4 years ago #

    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

  5. irteza
    Member
    Posted 4 years ago #

    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 ...

  6. irteza
    Member
    Posted 4 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic