Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127
Changing the format of links in the right sidebar on single posts « ThemeShaper Forums

ThemeShaper Forums » Thematic

[closed]

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

(3 posts)
  • Started 5 years ago by JakeThePeg
  • Latest reply from brongracz
  • This topic is not resolved

  1. Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512


    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512
    JakeThePeg

    Member

    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 5 years ago #

  2. Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512


    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512
    JakeThePeg

    Member

    Does anyone know where I can get some help with this...pleeeease? :)

    Posted 5 years ago #

  3. Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512


    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512
    brongracz

    Member

    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 5 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.


Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GA_Filter::spool_analytics() should not be called statically in /home/themes/public_html/forums/bb-includes/wp-functions.php on line 586

Strict Standards: Non-static method GA_Filter::spool_this() should not be called statically in /home/themes/public_html/forums/my-plugins/googleanalytics.php on line 183