The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
I want to override the class=”cn-notes” in getNotesBLock for entry page but not effect its general layout. I can do it by extending the function getNoteBlock and make a getNotesBlock2 with my modifications, but every update resets this include.
Is there a good method to extend this include without being impacted by each upgrade?
I read the document on overriding other modules, but it doesn’t cover classes or extending functions.
I would say you are overriding it in the wrong location. Rather than attempting to override the actual method, in the template, use this
$notes = apply_filters( 'cn_output_notes', $entry->getNotes() ); method instead and wrap the output in your own
div with whatever class you wish.
Just make sure you put your template override file in one for the locations specified in the tutorial so it is update safe.
Hope that helps!
You cannot reply to this support topic. Please open your own support topic.