ThemeShaper Forums » Thematic

[closed]

Changing the format of links in the right sidebar on single posts

(3 posts)
  • Started 4 years ago by JakeThePeg
  • Latest reply from brongracz
  • This topic is not resolved
  1. I am using the Gallery theme, based on Thematic.

    I would like to change the way the links are displayed in the Single Post pages of my blog.

    Instead of displaying the full URL of the designer's website, I would like to replace the full URL with the words "Click here for more info".

    For example, on this page http://tshirtcowbell.com/obama-more-cowbell-tshirt , in the right sidebar directly beneath "Designed by: Zazzle" I would like to replace the text very long URL in white, with "Click here for more info" (which of course should still hyperlink to the long URL which you are currently seeing).

    Which part of the code can I modify to do this (I'm a beginner with PHP coding, so be kind!)

    Posted 4 years ago #
  2. Does anyone know where I can get some help with this...pleeeease? :)

    Posted 4 years ago #
  3. Here it is shown how to hook in stylesheets from within your child theme functions.php:

    http://themeshaper.com/modular-css-wordpress-child-themes/

    Now what you need to do is to make this function conditional like here:

    http://programming.thematic4you.com/2010/01/how-to-use-a-different-layout-for-a-certain-page/

    In your case you put a filter similar to the one from first link (only using your own css files)in a conditional:

    <?php
      function my_stylesheet() {
      $stylesheetdir = get_bloginfo('stylesheet_directory');
      if (is_single()) {?>
        <link rel="stylesheet" type="text/css" href="<?php echo $stylesheetdir ?>/style1.css" />
      <?php
      } else {?>
        <link rel="stylesheet" type="text/css" href="<?php echo $stylesheetdir ?>/style2.css" />
      <?php
    }}
    add_filter ('thematic_create_stylesheet', 'my_stylesheet');
    ?>

    That is how I suppose more or less your functions.php could look like.
    I am also none of a php expert so I might have mixed sth. If it doesn't work keep inquiring here.

    Greetz.

    Posted 4 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.