Before you ask please READ THIS

Post details

edited October 2012 in Airlock Posts: 29
Hi,
On the front page and blog page i would like to change to replace the slash of the date by a"." where i can do that?
And second need, i would like to replace the word "comments" by an icon?
Thanks

Comments

  • AirAir
    edited October 2012 Posts: 10,970
    Hello

    To change / in sidebar you have to edit file airlock/advance/widgets.php find there every occurrence of
    $apollo13->posted_on('d.m.Y'); ?><span>/</span>
    and change slash in
    <span>/</span>
    To change it in blog list, edit file airlock/loop.php and do same as above change but in:
    <?php
    $apollo13->posted_on();
    ?><span>/</span>
    For making icon you will have to change same files but this time replace
    __( 'comment(s)', TPL_SLUG ) 
    with image of your icon. For example replace above code with
    '<img src="' . TPL_GFX '/youricon.png" alt="" />'
    and put youricon.png in airlock/common/gfx

    With regards.
    Post edited by Air on
  • Posts: 29
    For the last request, when i change code, i get this "Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /homez.527/alexisbo/www/wp-content/themes/airlock/loop.php on line 39"
  • Posts: 29
    About the dot in place of the slash, it works perfect for the sidebar, but for the main blog post, it is still the slash even when i ctrl+f5.
    :(
  • AirAir
    Posts: 10,970
    1. Show me how does now look whole line of code.
    2. Link where does it not work(maybe you missed some occurrence of code, check again).

    With regards.
  • edited October 2012 Posts: 29
    Screenshots in attached files

    Thank you
    code.jpg
    1422 x 844 - 267K
    hp.jpg
    1656 x 880 - 78K
    Post edited by alexis on
  • AirAir
    edited October 2012 Posts: 10,970
    I see, it was my typo. Sorry:-)
    Insert . after TPL_GFX
    Post edited by Air on
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!