WordPress.org

Ready to get started?Download WordPress

Forums

EvoLve
Update 208 again cut out ads (17 posts)

  1. maurizio04
    Member
    Posted 2 years ago #

    Same release on the website no cut out.
    Anyway edit functios.php and cut out these lines as usual...

    `$input['evl_space_1'] = wp_filter_post_kses( $input['evl_space_1'] );

    $input['evl_space_2'] = wp_filter_post_kses( $input['evl_space_2'] );

    $input['evl_space_3'] = wp_filter_post_kses( $input['evl_space_3'] );

    $input['evl_space_4'] = wp_filter_post_kses( $input['evl_space_4'] );

    $input['evl_space_5'] = wp_filter_post_kses( $input['evl_space_5'] );

    $input['evl_space_6'] = wp_filter_post_kses( $input['evl_space_6'] );

    $input['evl_space_7'] = wp_filter_post_kses( $input['evl_space_7'] );

    $input['evl_space_8'] = wp_filter_post_kses( $input['evl_space_8'] );

    $input['evl_space_9'] = wp_filter_post_kses( $input['evl_space_9'] );

    If you want to change the footer copyright it is on the same file, bottom.
    rename evolve_copy() in evolve_copy1()
    
    and make what you want, next is a basic example.
    careful where you insert the function, it must go before the comment shown.....
    function evolve_copy1() {
    $credits = '<p id="copyright" style="margin-top:20px;">
    <span class="credits">(c) Copyright 2010-2012 </span>
    <a href="'. home_url() .'">'. get_bloginfo( 'name' ) .'</a></p>';
    echo apply_filters( 'evolve_copy', (string) $credits );
    }

    // Share This Buttons
    `

    http://wordpress.org/extend/themes/evolve/

  2. maurizio04
    Member
    Posted 2 years ago #

    oops, too many "backticks"...

  3. maurizio04
    Member
    Posted 2 years ago #

    A better copyright line....

    function evolve_copy1() {
    	$credits = '<p id="copyright" style="margin-top:20px;"> (c) Copyright 2010-2012 
     <a href="'. home_url() .'">'. get_bloginfo( 'name' ) .'</a>
      •  Powered by <a href="http://wordpress.org">WordPress</a></p>';
    
      echo apply_filters( 'evolve_copy1', (string) $credits );
    }
    
     // Share This Buttons
  4. maurizio04
    Member
    Posted 2 years ago #

    A better home page, no year on post date (useless)..

    <a href="<?php the_permalink() ?>">
    <span class="published"><?php the_time('M'); ?>
    <br /><strong><?php the_time('d'); ?>
    </strong></span></a>
  5. maurizio04
    Member
    Posted 2 years ago #

    Smaller sidebar, just like Adsense vertical banner...

    .container { width: 960px; margin: 20px auto; }
    #wrapper {width:990px;}
    .hfeed { width: 670px; float: left; }
    .aside { width: 260px; float: right; }
    .footer { clear: both; }
    
    .widget-content #search-text {max-width:74%!important;}
    
    #search-button-box {position:relative;float:right;width:78px;z-index:0;}
    .widget-content #search-button-box {width:18%;height:40px;}
  6. platinum634
    Member
    Posted 2 years ago #

    hello, I notice you got your ads to work in the evolve theme, I'm using 2.2.1 (the most up to date) and it still will not work. I go to the functions.php to remove the lines that you suggest, but they are not there. Any other ideas? Thanks

  7. maurizio04
    Member
    Posted 2 years ago #

    hi, I usually update from the wordpress site AFTER 1 week (always wait a week for any update to see if no one is complaining...).
    The Evolve code from wp site and home web site is always different, i do not know why and usually the ads on WP site never work...
    Anyway i'll check the code.

  8. maurizio04
    Member
    Posted 2 years ago #

    The code is very different from 2.1.x so you had better to ask the developer on the theme site how to make ads working....
    I'll stick with 2.08 for a while....

  9. Romik84
    Member
    Theme Author

    Posted 2 years ago #

    evolve itself is not designed to work with ads which include javascripts, html, not safe content. you should use instead some plugins which covers adsense and similar codes. I can give you a trick which you can use in this theme version but then your theme won't be safe.

    go to library/functions/options-sanitize.php file. find this line:

    $output = wp_kses( $input, $allowedposttags);

    change it to

    $output = $input;

    then your ads will start to work. but as I mentioned, your theme won't be safe anymore and can be attacked by hackers.

  10. platinum634
    Member
    Posted 2 years ago #

    I do appreciate the quick responses, even though I liked the setup and look of Evolve there is no way I'm about to spend cash on something when the free version no longer works the way it used to concerning the ads. I see many other sites using adsense with the theme but now it is not supported? I went and and found a different one that works great and bought their premium theme.

  11. maurizio04
    Member
    Posted 2 years ago #

    The situation is getting confused :-(
    I saw Norton catching a cross site javascript attach to my pc from a very legitimate web site, so the problem is real but the theme must decide to support Ads or Not.
    I guess google is a safe source so just exclude the javascript test if the source URL is Google Adsense.
    Or cut out from the theme the ADS support menu.

  12. Romik84
    Member
    Theme Author

    Posted 2 years ago #

    @platinum634 might you let me know please which theme supports adsense which u use now? thanks.

  13. maurizio04
    Member
    Posted 2 years ago #

    I do not think there are too many free themes supporting ads in general, probably because wp.org at the beginning was non very happy about that feature.
    At 20cent per click very few sites will ever get rich with Adsense anyway but i cannot see the need to have ADS options not working with the biggest ads selling network.
    The standard no java ads can be handled with box text so no need to have box Ads...

    ps: how about adding the Google Analitycs code in the head section, very easy and widely used...having a plugin to add 4 lines of html seems to me a stupid idea...

  14. maurizio04
    Member
    Posted 2 years ago #

    I forgot, do you ever test Evolve with IE?
    Not the dashboard, the output.
    It is still a bad mess on every IE version, apart forcing compatibility IE7 mode.
    The gradient filter in the post data block is twice longer than the box itself..........

  15. Romik84
    Member
    Theme Author

    Posted 2 years ago #

    I am currently working on an alternative which will enable adsense on the evolve, and it will still keep safe the theme. I test it on IE8. I can see the problem too, but still didn't find out what makes the issue :/

  16. maurizio04
    Member
    Posted 2 years ago #

    it is this function that is crashing....
    i've cut it out.

    .entry-meta
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#e9e9e9', endColorstr='#cccccc');

  17. Romik84
    Member
    Theme Author

    Posted 2 years ago #

    unfortunately, wordpress will not allow themes with built-in ads option, so I made a version with ads option available here http://theme4press.com/evolve/

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags