The MU forums have moved to WordPress.org

Help on finding where certain links are coded. (9 posts)

  1. albel
    Member
    Posted 17 years ago #

    http://tales.rpgplanet.gamespy.com/blog/

    The blog I am using for my website doesn't use the listed order (< li >) codes, but it seems some of them are hard-coded into the script.

    Does someone know what file(s) contain the < ul > and < li > markup, so I can remove it?

  2. drmiketemp
    Member
    Posted 17 years ago #

    Depends actually. First place I would look is your theme files. If you;re talking about the links along the left hand side, I'd say the theme's sidebar.php file. I see li and ul tags though in there so I'm not sure if those are the links you're looking at exactly.

  3. albel
    Member
    Posted 17 years ago #

    <?php wp_list_pages('title_li=' ); ?>

    That's one of them. See, it's doing a PHP call to somewhere, but I can't figure out where it is.

  4. drmiketemp
    Member
    Posted 17 years ago #

    The function is within wp-includes/post-template.php. Line 279 or so.

    You may want to check out the wordpress codex though as you may just have to change the variables.

    http://codex.wordpress.org/Template_Tags/wp_list_pages

    Hope this helps,
    -drmike

  5. albel
    Member
    Posted 17 years ago #

    I couldn't seem to find anything that could get rid of them. I had to resort to putting in a CSS class to strip the "dots" from all < li > tags.

    I wish I could find what file(s) creates the <a href=""... link, since my navigation links have a special class attached to them...

  6. lunabyte
    Member
    Posted 17 years ago #

    grep -ir "search string" <target>

    Simple, effective.

  7. albel
    Member
    Posted 17 years ago #

    Where do I use that code? I'm not familiar with that syntax...

  8. drmiketemp
    Member
    Posted 17 years ago #

    Luna is using a SSH connection and doing that from a command prompt on the server.

    I myself suggest a text editor program called ultraedit if you're stuck on a windows box locally. I can search through files looking for phrases where the windows search won't do it.

  9. lunabyte
    Member
    Posted 17 years ago #

    Well, yes, you could use SSH.

    I usually use terminal though. ;)

About this Topic