Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #18281

    Hi:

    In my blog, I’ve created 3 categories: “iPad”, “iPhone” and “Universal”.

    After that, between the title and images of the Slideshow, there are some links to the categories. In this place, appeared “All / iPad / iPhone / Universal” I just delete “All” link, but the slash that separates “All” from “iPad” continues there.

    I saw in Google Chrome’s “Inspect element” option that this slash is “”””” <span class=”text-sep ipad_sort_sep”>/</span> “”””” but I haven’t found it in any .php or .css theme page.

    This is the blog: http://bit.ly/VjbAXf

    How can I delete this slash?

    Thanks!

    #98881

    In includes/loop-portfolio.php replace:

    foreach($categories as $category)
    {
    $output .= "<span class='text-sep ".$category->category_nicename."_sort_sep'>/</span><a href='#' data-filter='".$category->category_nicename."_sort' class='".$category->category_nicename."_sort_button' >".$category->cat_name."</a>";
    $container_id .= $category->term_id;
    }

    with:

    $i = 'even';
    foreach($categories as $category)
    {
    $output .= "<span class='text-sep ".$category->category_nicename."_sort_sep ".$i."'>/</span><a href='#'>".$category->category_nicename."_sort' class='".$category->category_nicename."_sort_button' >".$category->cat_name."</a>";
    $container_id .= $category->term_id;
    $i = 'odd';
    }

    Now you should be able to use following css code to hide the first seperator:

    span.text-sep.even{
    display: none;
    }

    #98882

    After that, the blog is showing instead the Portfolio:

    Parse error: syntax error, unexpected T_STRING in /home/manu/public_html/wp-content/themes/angular/includes/loop-portfolio.php on line 66

    #98883

    Hi,

    I copied Dude’s code and it is working fine. Make sure you follow the instructions and careful not to change anything on the code.

    Regards,

    Ismael

    #98886

    Hey!

    Please post your code with github gist: https://gist.github.com/ or put it in between backtick ( ` ) characters.

    Regards,

    Peter

    #98887

    Before remplace: https://gist.github.com/0990736242fbaadfac7e

    After replace: https://gist.github.com/f39d6143749d6e01aba5

    And error in Portfolio page is:

    Parse error: syntax error, unexpected T_STRING in /home/manu/public_html/wp-content/themes/angular/includes/loop-portfolio.php on line 67

    #98888

    Hi!

    I corrected the code – you can find it here: https://gist.github.com/0f19c003a91fc9dfa99e

    Regards,

    Peter

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Delete slash in Portfolio’ is closed to new replies.