• Resolved sensato

    (@sensato)


    Would like assistance with any of these tweaks, if possible, pls.

    1. Replace the reverse breadcrumb at the top of all detail pages with just the page title “Local Food”

    2. Show all categories each item belongs to within their details page, with those categories as clickable links if possible

    3. Scale down the size of the listings by 10-15% so that boxes don’t reach to full width in the vertical lines

    4. Will longer listings automatically become paginated?

    5. I’d like to (temporarily) trigger an acknowledgement pop-up when the Community Garden category is clicked. The Popup Maker add-on triggers can be CSS class, id, or href. Which trigger can I use for this?

    Many thanks for any help with these.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter sensato

    (@sensato)

    5. This is solved. Instead of using a popup for my required Notice, I’ll create an entry in the Community Garden category that automatically sorts to the top of the list.

    • This reply was modified 4 years, 10 months ago by sensato.
    Plugin Author Steven

    (@shazahm1hotmailcom)

    RE: Replace the reverse breadcrumb at the top of all detail pages with just the page title “Local Food”

    This can only be done by hooking into the cn_page_meta_title filter. I think I can provide a code snippet which can reverse the title order. I’ll reply, as a separate post.

    RE: Show all categories each item belongs to within their details page, with those categories as clickable links if possible

    Please navigate to the Connections Templates admin page and click the Customize button for the cMap template.

    The page will reload sowing the Customizer on the left and a preview on the right. In the Customizer, enable the display Categories option.

    Please take note of the instructions displayed above the directory in the preview.

    Click an entry name in the preview, any entry name, it does not matter which.

    The preview will update displaying that entry only.

    Enable the display Categories option again.

    Publish the changes and exit the Customizer.

    RE: Scale down the size of the listings by 10-15% so that boxes don’t reach to full width in the vertical lines

    The width is determined by the theme’s content area width. So, if the theme has a width option on that page, set the width using the theme option.

    If it does not.

    You can use CSS. Add the following to the theme’s custom CSS area found in the Customizer.

    div#cn-list {
        max-width: 90%;
    }

    RE: Will longer listings automatically become paginated?

    I see you are using the cMap template … yes. The default pagination limit is 20 per page.

    Hope this helps! Please let me know.

    Plugin Author Steven

    (@shazahm1hotmailcom)

    Install the Code Snippets plugin. Here’s the link:

    Add a new snippet with the following code:

    add_filter(
    	'cn_page_title',
    	function( $title, $pieces, $separator, $original, $id ) {
    		
    		$pieces = array_reverse( $pieces );
    		
    		return implode( " $separator ", $pieces );
    	},
    	10,
    	5
    );

    Save and Activate the snippet.

    Thread Starter sensato

    (@sensato)

    Very nice, Steven. Thank you.

    I’m more of hacker than a coder — for the breadcrumb snippet, is it not possible to use an index on the variable, such as $pieces[1], to show just the first bit? We’re not using a multi-level hierarchy for the categories, so that trail info is simply redundant there.

    And I’ve decided to not to decrease the width after all.

    • This reply was modified 4 years, 10 months ago by sensato.
    Plugin Author Steven

    (@shazahm1hotmailcom)

    Ok, then please navigate to the Connections Settings admin page and click the SEO tab and disable the page title option.

    Ty=he array index should be 0, when not reversed (I think).

    Thread Starter sensato

    (@sensato)

    Done! Thanks again.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Tweaks for new installation’ is closed to new replies.