Archived

This topic is now archived and is closed to further replies.

  • 0

Hook For Custom Divider Not Working - Please Help

Question

Posted · Report post

Hello

I have used this hook to successfully add an image to a section as a divider


// Add Image to after banners


add_action('pagelines_after_banners','add_image_to_banners');


// function name


function add_image_to_banners (){ 

?>

              <div id="custom_divider_2"></div>

<?php


}


// end function
with this CSS



#custom_divider_2 {

background: url(http://www.kyle-irving.co.uk/wp-content/uploads/2012/07/custom_divider_2-copy.png)repeat-x;

height: 28px;

margin-top: -25px;

position: relative;

z-index: 1;

}



However i have just tried to use this

// Add Image to after kiboxes


add_action('pagelines_after_kiboxes','add_image_to_kiboxes');


// function name


function add_image_to_kiboxes (){ 

?>

              <div id="custom_divider_4"></div>

<?php


}


// end function

with this CSS

#custom_divider_4 {

background: url(http://www.kyle-irving.co.uk/wp-content/uploads/2012/11/custom-divider-4.png) repeat-x;

height: 28px;

margin-top: 5px;

position: relative;

z-index: 1;

}

any ideas?

you can see it all in action here

http://www.kyle-irving.co.uk/home/

Thanks

Share this post


Link to post
Share on other sites

7 answers to this question

Posted · Report post

ah ok i see

but when i turned the action map on i was able to see/identify hooks for kiboxes.

is there something else that needs to be done for hooks that can be seen in the action map to be usable?

thanks

Share this post


Link to post
Share on other sites

Posted · Report post

Maybe the hook is running too late, where did you add the code?

Share this post


Link to post
Share on other sites

Posted · Report post

What are the kiboxes?

Share this post


Link to post
Share on other sites

Posted · Report post

i have used the pagelines-customize/functions.php

// Add Image to banner above outer content


add_action('pagelines_after_contentbox','add_image_to_contentbox');


// function name


function add_image_to_contentbox (){ 

?>

              <div id="custom_divider"></div>

<?php


}


// end function


// Add Image to after banners


add_action('pagelines_after_banners','add_image_to_banners');


// function name


function add_image_to_banners (){ 

?>

              <div id="custom_divider_2"></div>

<?php


}


// end function



// Add Image to after kiboxes


add_action('pagelines_after_kiboxes','add_image_to_kiboxes');


// function name


function add_image_to_kiboxes (){ 

?>

              <div id="custom_divider_4"></div>

<?php


}


// end function



The css is in the pagelines-customize/style.css

Thanks

Share this post


Link to post
Share on other sites

Posted · Report post

Hi there, have you managed to resolve this or do you still require assistance. I've just got someone to look over for you, they advised to check there are no quotes around the url for the image. Also I've checked the image link, but I can only see a white rectangle. Is the correct image attached to the divider?

Share this post


Link to post
Share on other sites

Posted · Report post

kiboxes are a section that we created based on pagelines boxes. in fact they are pagelines boxes just with encapsulated code.

Share this post


Link to post
Share on other sites