badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

grendizer

Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • in reply to: Setting a background image only in the header and footer? #23085
    grendizer
    Member

    Hello! I would like to know if there is any update on this in CleanRetinaPro 1.8? Is it now possible to have a background image in the header and footer, but not in the content zone that I want to keep white?

    in reply to: Child theme and modified code #16473
    grendizer
    Member

    Hello again. So I have searched again by studying the functions and by reading articles on the web. I finally managed to do what i wanted. I’m putting here my conclusions to help other people with the same problem:

    1) First, I noticed the function cleanretina_featured_post_slider() was OUTSIDE the function cleanretina_headerdetails(). There is a closing “}” before all bottom functions such as cleanretina_featured_post_slider(). As a result, in the child theme’s functions.php, there is NO need to refer to the function cleanretina_headerdetails().

    2) Second, there are 2 ways to replace a parent function with a child fonction.
    – First solution : Deactivate the Parent Function then Activate the Child Function: http://venutip.com/content/right-way-override-theme-functions . This is what I was trying to do.
    – Second solution : use “pluggable” functions : http://codex.wordpress.org/Child_Themes#Using_functions.php : TIP FOR THEME DEVELOPERS. The fact that a child theme’s functions.php is loaded first means that you can make the user functions of your theme pluggable —that is, replaceable by a child theme— by declaring them conditionally. E.g.:
    if ( ! function_exists( ‘theme_special_nav’ ) ) {
    function theme_special_nav() {
    // Do something.
    }
    }

    3) According to the code in header-extension.php, Theme Horse’s developpers are using the second solution for the function I’m interested in. The following line:
    if ( ! function_exists( ‘cleanretina_featured_post_slider’ ) ) :
    means that if the function cleanretina_featured_post_slider does not exist, then it should be run. But, the child theme’s functions.php is loaded before the parent theme’s functions. So if the same function already exists in the child theme, it will not run in the parent theme!

    4) So my code in the child theme’s functions.php is very simple:
    <?php // Opening PHP tag – nothing should be before this, not even whitespace
    function cleanretina_featured_post_slider() {
    //original code pasted here , then modified for my own needs.

    5) It’s a lot of work and research for a simple bug, so I repeat: Theme Horse should fix once and for good the conflict between CleanRetina (Free & Pro) and the Polylang plugin.

    Thanks
    David

    in reply to: Child theme and modified code #16472
    grendizer
    Member

    However I believe the bugfix for the conflict between CleanRetina and Polylang should be part of the CleanRetina code.

    in reply to: Child theme and modified code #16436
    grendizer
    Member

    Well I tried editing the code as best as I could but still can’t get it to work.
    So now I should perhaps hire a devlopper but it would mean I would pay more for a bug fix. I’m just trying to fix a conflict between CleanRetina Pro and Polylang.
    So how do I contact a developper and how much would it cost me?
    Thanks

    in reply to: Child theme and modified code #16232
    grendizer
    Member

    Hi
    Thanks for pointing me to the location of the function in your example code.

    Let’s look at the example code:
    As I said in my September 16 post, just before the function, there should be a line with:
    add_action(‘phase’,’function’, ‘priority’);
    And indeed, just before the function cleanretina_display_404_page_content() , there is a line reading:
    add_action( ‘cleanretina_404_content’, ‘cleanretina_display_404_page_content’, 10 );
    This line is essential because it gives information to unhook the function.

    Now for the function cleanretina_featured_post_slider: it is located in:
    clean retina pro (themefolder) -> library -> structure -> header-extensions.php on line no 490
    Just before this function, there is NO line reading: add_action(‘phase’,’function’, ‘priority’);
    So I don’t have the necessary information to unhook this function in the child theme.

    This should be easy to fix, thanks for any help!!
    David

    in reply to: Child theme and modified code #16144
    grendizer
    Member

    Hi

    Yes I was aware of this kind of code, and I’m about to add it to my child theme’s function.php, but there is missing information. For example, in your sample code, there is this line :
    remove_action( ‘cleanretina_404_content’, ‘cleanretina_display_404_page_content’, 10 );
    ‘cleanretina_404_content’ : I must replace this by the real “phase”. Where do I find this info?
    ‘cleanretina_display_404_page_content’ : I must replace this by the real function: ‘cleanretina_featured_post_slider’
    10 : I must replace this by the real position number. Where do I find this info?

    Thanks , and sorry for the newbie stance.
    David

    in reply to: Child theme and modified code #16102
    grendizer
    Member

    Hello Theme Horse Support, thanks a lot for the help.
    I’m reading this link and also this one : http://venutip.com/content/right-way-override-theme-functions
    So I understood that for this to work, I need to find, in the original header-extensions.php , right before the begining of the cleanretina_featured_post_slider() function, a line that reads:
    add_action(‘phase’,’function’, ‘priority’);
    Unfortunately, I can’t find such a line before the begining of the cleanretina_featured_post_slider() function. Could you please help me?
    Thanks,
    David

    in reply to: CleanRetinaPro file causing troubles on WordPress Dashboard #15796
    grendizer
    Member

    Yesterday I upgraded and the Dashboard issue is now fixed. However, some of my settings were gone after the upgrade:
    – Widgets on the footer sidebar were gone and I had ton re-create them from scratch.
    – The custom header logo was gone.
    – Appearance > menus > manage locations > I had to set again the drop down.
    Other settings were kept. The Theme Horse support told me it’s not normal these settings had changed, but I wanted to know if I was the only one in this situation?
    See you,
    -G

    in reply to: CleanRetinaPro file causing troubles on WordPress Dashboard #15705
    grendizer
    Member

    Support has just told me there’s a new version available in our accounts.

Viewing 9 posts - 1 through 9 (of 9 total)