Results 1 to 3 of 3

Thread: Child theme

  1. #1
    Thread Starter
    Veteran spymare's Avatar
    Join Date
    Aug 2010
    Location
    Denmark
    Posts
    871
    Thanks
    16
    Thanked 82 Times in 61 Posts

    Child theme

    HI. I haven't been playing around with how child themes works before.
    but I made a new child theme folder: classipress_child and placed a style.css inside the folder, and activated the child theme.

    Now the problem is:

    I got this code, that modified the already existing functions from style.css in the classipress theme, to highlight the ads, when holding the mouse over them:

    /* ad loop block */

    .post-block { width:575px; background: #FFFFFF; margin:0 0 7px 0; padding:6px; 27px; 3px; 0px; border:1px solid #BBBBBB; -khtml-border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px; border-radius: 6px;}
    .post-block:hover {background-color:#FFFFFF; border: 2px solid #D64203; }
    .post-left {float:left;padding-left:1px;}
    .post-left a.preview img:hover {opacity:0.6;}
    .post-block .post-right {float:right;max-width:480px;min-width:380px;}
    .post-block .post-right-no-img {float:right;width:100%;}
    .post-block .full {width:100%;}
    .post-block .post-right h3 {float:left; max-width:470px; margin:0; padding:0; font:bold 12px/1.0em Arial, Helvetica, sans-serif; color:#4f4f4f; text-decoration: none; text-shadow: 0 1px 0 #FFFFFF;}
    .post-block .post-right-no-img h3 {float:left; max-width:480px; margin:0; padding:0; font:bold 12px/1.0em Arial, Helvetica, sans-serif; color:#4f4f4f; text-decoration: none; text-shadow: 0 1px 0 #FFFFFF;}
    .post-block .post-right h3 a, .post-block .post-right-no-img h3 a { text-decoration: none; }
    .post-block .post-right h3 a:hover, .post-block .post-right-no-img h3 a:hover { text-decoration: underline; }
    .post-block .post-right p.post-meta, .post-block .post-right-no-img p.post-meta {color:#AFAFAF;font-size:11px;margin:0;padding:1px 0;text-shadow:0 1px 0 #FFFFFF;border-bottom:1px dashed #939393;}
    .post-block .post-right span.owner , .post-block .post-right-no-img span.owner {padding: 0 5px;}
    .post-block .post-right span.owner img.avatar, .post-block .post-right-no-img span.owner img.avatar {padding:0 7px 0 0;margin-bottom:-3px;}
    .post-block .post-right p.post-desc, .post-block .post-right-no-img p.post-desc { margin:0; padding:1px 0;}
    .post-block .post-right p.stats, .post-block .post-right-no-img p.stats {clear:both; padding:0; float:right;font-size:11px;color:#AFAFAF;}
    .post-block .post-right p.adid, .post-block .post-right-no-img p.adid {clear:both; padding:0; float:right;font-size:11px;color:#AFAFAF;}
    .post-block .post-right p.location, .post-block .post-right-no-img p.location { margin:0; padding:0;}

    this functions is now used in both the child theme, and the orginal theme, so it will looks weird, because it is being used 2 times.
    How would i disable the functions from the child theme in the orginal style.css? so the function only is being used in the style.css from the child theme?

    Because that's the whole idea with child themes, that you can easy upgrade to new versions, without making changes to the theme it self.
    ♣ Display your classifieds site in Grid format
    Demo >> http://www.places-finder.com
    Thread >> https://forums.appthemes.com/theme-pl...comment-21709/
    Created by Mr. Green

  2. #2
    pepsi's Avatar
    Join Date
    Mar 2009
    Location
    New Zealand
    Posts
    14,883
    Thanks
    91
    Thanked 804 Times in 718 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Marketplace Seller ahikmahin's Avatar
    Join Date
    Aug 2010
    Location
    Australia
    Posts
    504
    Thanks
    32
    Thanked 52 Times in 42 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. child theme - functions - theme actions
    By pauro in forum Report ClassiPress Bugs
    Replies: 5
    Last Post: January 3rd, 2012, 06:56 AM
  2. Wordpress theme framework as child theme ?
    By samala in forum ClassiPress General Discussion
    Replies: 2
    Last Post: October 6th, 2011, 08:12 AM
  3. Creating child theme, Modifying classipress theme
    By kajaja in forum ClassiPress General Discussion
    Replies: 2
    Last Post: September 29th, 2011, 11:28 AM
  4. Artisteer/existing theme to child theme it on classipress
    By jpartner in forum ClassiPress General Discussion
    Replies: 3
    Last Post: October 30th, 2010, 12:06 PM
  5. Child Theme - logout redirection to default theme issue
    By cgervereau in forum ClassiPress General Discussion
    Replies: 3
    Last Post: September 1st, 2010, 01:48 AM