Forums

making post title an active link - permalink (7 posts)

  1. uduak
    Member
    Posted 1 year ago #

    hej!

    i've been struggling to figure out how to turn the titles in my blog post into permalinks. the title works as a link once i'm on the actual post (when i click "leave comment") but not when i'm on the main page.

    how can i change that? i tried making changes in the single post.php and checked the permalinks site and every other option i could think about but no luck so far.

    hope you can help me!

    http://blog.uduak.org

  2. Matt McInvale
    Member
    Posted 1 year ago #

    If your theme includes home.php, edit that. If not, edit index.php.

  3. uduak
    Member
    Posted 1 year ago #

    brilliant! so easy! only problem now: my "link font" is defined to be much smaller than the actual "blog title font". believe it's got something to do with this in my style.css

    #content h2 {
    font-family:Arial, Helvetica, sans-serif;
    font-size: 28px;
    font-weight:bold;
    color:#000000;
    border-bottom:solid #000;
    border-width: 2px;
    width: 500px;
    padding-bottom: 10px;

    and

    a:active { text-decoration: none;
    font-size:12px;
    font-family:Helvetica, Verdana, Arial, sans-serif;
    color:#000000;
    }

    a:visited { text-decoration: none;
    font-size:12px;
    font-family:Helvetica, Verdana, Arial, sans-serif;
    color:#000000;
    }

    a:hover { text-decoration: none;
    font-size:12px;
    font-family:Helvetica, Verdana, Arial, sans-serif;
    color:#FF3300;

    how can i change the coding to keep blog titles large without making links in the post large as well.

  4. imhameed78
    Member
    Posted 1 year ago #

    i m sorry, i could not understand, what u wanted to do? if you are on the main page of the post, then why do u need to urs post title still to be a link, as this would not take you anywhere, u r going to stay on the same page. this is what i got from urs question, i m sorry if did not get you.

  5. uduak
    Member
    Posted 1 year ago #

    @imhameed78
    i know what you mean. i've just been getting mails from readers wh thought it would be easier to share a post if the blog title was a direct link (copy/paste).
    - and i did have a share buttom at the buttom of the post but for some reason they thought it was "too much work".

  6. imhameed78
    Member
    Posted 1 year ago #

    cool!
    following your followers

  7. imhameed78
    Member
    Posted 1 year ago #

    then you will need make changes in styles.css and post.php i.e single post

Topic Closed

This topic has been closed to new replies.

About this Topic