skip to Main Content

can i know how to remove date part from a blogger post

for ex check the below url: http://w2t-minit.blogspot.in/2015/03/photoshop-effects-part-2.html but i want that to be like below url http://w2t-minit.blogspot.in/photoshop-effects-part-2.html

i dont want the date part “2015/03” to be posted can you help me how to remove that ??

thanks

3

Answers


  1. Split the absolute url, and extract the parts with REGEXP :

    $url = parse_url('http://w2t-minit.blogspot.in/2015/03/photoshop-effects-part-2.html');
    preg_match('#/d{4}/d{2}/(?P<url>.*)#', $url['path'], $matches);
    

    $matches['url'] will contain photoshop-effects-part-2.html . then re-assemble a full url :

    $dateless = $url['scheme'] .'://'. $url['host'] .'/'.$matches['url'];
    

    EDIT : I think I have misunderstood the question here.
    I though is was tagged PHP…

    Login or Signup to reply.
  2. Unfortunately, it’s impossible on Blogger.

    Login or Signup to reply.
  3. Sure narendra,

    Replace:

    span#metaDetail span#datePosted {
    float: left;
    margin-left: 30px;
    height: 32px;
    line-height: 32px;
    }
    

    with:

    span#metaDetail span#datePosted {
    display: none;
    }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search