Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Content Views

    (@pt-guy)

    Hi,
    Please add this code to file functions.php of your active theme:

    // CVPro - Show print button for each post
    add_filter( 'pt_cv_before_item', 'cvp_before_item', 100, 1 );
    
    function cvp_before_item( $args ) {
    	if ( function_exists( 'pf_show_link' ) ) {
    		$args = pf_show_link();
    	}
    	return $args;
    }

    Best regards,

    Thread Starter knireis

    (@knireis)

    Thanks for the code but unfortunately i do not see a print button when expanding a post in the collapse list view.

    Thread Starter knireis

    (@knireis)

    By the way i do see a button appear in posts in the grid view, but as i said before not when i expand an item in the collapse list

    Plugin Author Content Views

    (@pt-guy)

    Hi,
    I think it works, but you didn’t see it due to a style problem.
    Can you send me URL of a page which illustrates problem?
    Best regards,

    Thread Starter knireis

    (@knireis)

    Here is the link:http://delandyn.sierink-wp.nl/recepten/

    I did add some custom CSS as you will see

    Plugin Author Content Views

    (@pt-guy)

    Hi,
    Below this line

    add_filter( 'pt_cv_before_item', 'cvp_before_item', 100, 1 );

    in the custom code I sent you before, please add this code

    add_filter( 'pt_cv_collapsible_before_heading', 'cvp_collapsible_before_heading', 100, 1 );

    Best regards,

    Thread Starter knireis

    (@knireis)

    Sorry, still does not display the button. I removed the custom css i made for this plugin but that did not help either.

    Plugin Author Content Views

    (@pt-guy)

    Because heading of Collapsible list is quite different from other layouts.

    please add this code to file functions.php of your active theme:

    add_filter( 'pt_cv_collapsible_before_heading', 'cvp_before_item', 100, 1 );
    Thread Starter knireis

    (@knireis)

    Thanks, now i see the button.
    But if i select the button, it wants to print the whole page, so all posts in the collapse list. Not just the one i selected the print button on.

    Plugin Author Content Views

    (@pt-guy)

    Hi,
    Please add this code to file functions.php of your active theme:

    add_filter( 'pt_cv_before_output_html', 'cvp_before_item', 100, 1 );
    
    Thread Starter knireis

    (@knireis)

    Thanks again, but unfortunately this code puts a button on top of the collapse view list and still wants to print all the post in the collapseview list. Not just the one which is ‘opened’.

    Plugin Author Content Views

    (@pt-guy)

    Hi,
    if so, that is problem of function pf_show_link() you are using.
    I’m sorry that I can’t help you more.
    Best regards,

    Thread Starter knireis

    (@knireis)

    Ok, i understand, thanks for the support

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘add print button the collapse style’ is closed to new replies.