Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1043512
    rikkon
    Participant

    I’ve edited the recent posts element slightly (if post format = link, title links to link instead of post). I would like to save it under a different name to avoid it getting overwritten by an update. All my changes are in the shortcodes/recent-posts.php.

    I tried changing the name “class CS_recent_posts” to “class CS_Extended_Recent_Posts” in elements/alternate, as well as changing the names in the shortcodes/recent-posts.php file. It gives me an error on class-element-orchestrator.php, line 173.

    #1043756
    Rupok
    Member

    Hi there,

    Are you editing Cornerstone file? You shouldn’t touch theme or plugin file in any circumstances. You can use Child Theme and write your own function with different name like this – https://community.theme.co/forums/topic/add-excerpt-to-recent-posts-shortcode/#post-119155

    Writing code in Child Theme is safe because it won’t be wiped out if you update your theme and plugins.

    Hope this makes sense.

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1043512 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>