• Resolved everythingisweird

    (@everythingisweird)


    I’m trying to overlay a custom field output from the Advanced Custom Fields plugin, over featured images from a particular category using the grid display option.

    To do this I need to wrap the featured images in a div, but I’m struggling to find where to place the div tags to achieve this, I’m also not sure where to place the code for the custom field output. Any help would be greatly appreciated!

    Oh and also I’m using a theme based on Zurb’s foundation and I’ve been trying to center the pagination. On line 733 of html.php I’ve enclosed the pagination in a div and given it the pagination-centered class. This works centers it, but breaks it’s functionality and I can’t work out why. Here’s the code:

    $pagination_btn = sprintf( '<div class="pagination-centered"><ul class="%s" data-totalpages="%s" data-sid="%s"></ul></div>', PT_CV_PREFIX . 'pagination', esc_attr( $max_num_pages ), esc_attr( $session_id ) );

    Any suggestions?

    https://www.ads-software.com/plugins/content-views-query-and-display-post-page/

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

    (@pt-guy)

    Hi,
    you should add add_filter for ‘pt_cv_pagination_output’ instead of changing the core of Content Views plugin.
    If you check the javascript file, you will find the class name you should use for wrapper of pagination.

    fyi, this feature is already available in Pro version.

    Best regards,

    Thread Starter everythingisweird

    (@everythingisweird)

    Many thanks, where would I add the filter and is it ‘pagination-wrapper’ in public.js that is the correct class?

    Also how would I wrap all featured images in <div> tags? I can enclose them by altering the link output html, but this wraps all links in divs and I’m just after the images?

    Thanks for all your help.

    Plugin Author Content Views

    (@pt-guy)

    currently, there is no filter to wrap images inside <div> tag.
    I will consider to add that filter in upcoming versions.

    best regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Overlaying custom field output over featured image’ is closed to new replies.