Home page counter and changes

Discussion in 'Squirrel WordPress Theme' started by stormy, Nov 14, 2013.

  1. stormy

    stormy New Member

    Joined:
    Apr 2, 2013
    Messages:
    7
    Likes Received:
    0
    Hi,
    I am using Squirrel theme Pro and added the "Who Hit The Page - Hit Counter" plugin.
    The problem I have that I have no idea how I can add the counter to my home page.
    When I add "[whohit]PageName[/whohit]" to any regular page it works, but when I add it to a section in the home page "Theme Options" it does not work and it shows this literal text.

    I also had a similar issue some time ago, when I wanted to add a like button top my home page.

    Can someone help me?

    One of my 2 pages I am trying this on is www.storm4u.nl

    Thanks
     
  2. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
  3. stormy

    stormy New Member

    Joined:
    Apr 2, 2013
    Messages:
    7
    Likes Received:
    0
    Hi,

    I have tried to add it to several theme options, like the home page heading and the "homepage cols", "left col description".
    See the attached pictures.


    Regards
    Erik
     

    Attached Files:

  4. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
    Hello,

    Go to the front-page.php file present in your theme directory and paste the code given below as instructed in the image.

    Code:
    <p><?php echo do_shortcode(stripslashes(inkthemes_get_option('inkthemes_leftcoldesc'))); ?></p>
    [​IMG]


    This will solve your issue.
     
  5. stormy

    stormy New Member

    Joined:
    Apr 2, 2013
    Messages:
    7
    Likes Received:
    0
    Hi,

    It still does not work, as it keeps on showing the literal text in the field.

    This is how my code now looks:
    ==========================================
    <!--Start Index-->
    <div class="full-content">
    <div class="text-featute">
    <div class="grid_12 alpha">
    <div class="text-featute-one">
    <?php if (squirrel_get_option('squirrel_leftcolhead') != '') { ?>
    <h3><?php echo stripslashes(squirrel_get_option('squirrel_leftcolhead')); ?></h3>
    <?php } else { ?>
    <h3><?php _e('Powerful Reporting', 'squirrel'); ?></h3>
    <?php } ?>
    <?php if (squirrel_get_option('squirrel_leftcoldesc') != '') { ?>
    <!-- ES: Next line instead of this one <p><?php echo stripslashes(squirrel_get_option('squirrel_leftcoldesc')); ?></p>-->
    <p><?php echo do_shortcode(stripslashes(inkthemes_get_option('inkthemes_leftcoldesc'))); ?></p>
    <?php } else { ?>
    <p><?php _e('Product Developers/ Internet Marketer make more products sales when they can easily display their products with the buy links in the perfecter location.', 'squirrel'); ?></p>
    <?php } ?>
    </div>
    </div>
    <div class="grid_12 omega"></div>

    ===================================
    I also tried to do this by changing
    inkthemes_leftcoldesc to squirrel_leftcoldesc
    and
    inkthemes_get_option to squirrel_get_option

    but this did not matter.

    I have changed my code back to what it was and removed the code.
     
  6. stormy

    stormy New Member

    Joined:
    Apr 2, 2013
    Messages:
    7
    Likes Received:
    0
    Is there someone who can help with this issue?
    I still cannot add any option thingy to my homepage.
    Like [whohit]PageName[/whohit] or a similar type of code for f.e. a facebook like button.
     
  7. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    Please provide the following information listed below.

    Thread Link:
    Your Website URL:
    WordPress Username:
    WordPress Password:

    Send this information on our email at [email protected]
    We will check your issue.
     

Share This Page