Took me a couple of blind tries, but I got it.
Before:
<a class="view-article" href="' . get_permalink($post->ID) . '">' . __('View Article', 'html5blank') . '</a>';
After:
<a data-toggle="modal" data-target="#modal-' . $post->ID . ' " class="over">' . __('View Article', 'html5blank') . '</a>'
Related Posts:
- new_excerpt_more link not working properly
- Can’t change excerpt length and more tag
- How to add an excerpt and read more link to a page?
- Check if the user has explicitly set an excerpt
- How to override function in functions.php of parent theme?
- Show Video in Excerpt
- When is wp_trim_excerpt() called?
- Stripping shortcode from custom excerpt function
- Remove images from get_the_excerpt
- Custom page template how to check is_page from functions.php?
- display public excerpt for private post
- get_the_excerpt() not returning anything when post has no excerpt
- get excerpt without images
- Allow latex in wordpress excerpt
- Custom excerpt legnths for specific pages
- How to filter out shortcode when displaying the_excerpt() in the loop?
- Using “Read More” link with custom excerpt
- How to display post content instead of excerpt
- Using Schema with `the_excerpt`
- How to put “Read more” link in Custom Excerpt inside p tag?
- Custom Post excerpt not working correctly
- Limit length of first excerpt in the loop
- Excerpts are not displayed by a shortcode on category pages
- How to display retweet count and likes in the meta above the excerpt
- Setting a default text for excerpts of a particular category
- Remove links from the_content when using filters wp_trim_excerpt
- Excerpt for pages not showing
- How do I pull excerpts from pages?
- WordPress Excerpt – How to remove the first link using functions.php
- Strip div From Excerpt
- How to change value of variable in theme file with functions.php WordPress?
- More tag locked in Hemingway
- first paragraph of the_content as meta description
- Adding Read More to Custom excerpts
- Limit number of characters in different excerpts
- the_excerpt function not showing image
- Why does modifying the “read more” link remove the link class?
- Appending „read more” to the excerpt conditionally
- how can I change the read more link destinations and direct all to the same page?
- Hide disclaimer from summary excerpts
- How to make an If Else on Excerpt Filter
- getExcerpt: Make ellipsis appear only if character limit is reached
- Excerpt length: get 2 paragraphs
- Check if excerpt is empty at loop-portfolio
- More link – not text
- Adding a filter to my posts
- Excerpt – First Sentence & Read More
- function to show youtube videos within excerpt – if condition and apply_filters
- Adding a meta box fields to child theme options page
- Nothing happends on post_update
- Multisite Admin Roles
- WordPress not showing pagination links
- How to wp_enqueue_script with html?
- Automatically add tag if a checkbox is checked
- Database SQL Error, Should Work
- Database Query not working
- Adding a jQuery rotator function
- Can I use a function to return HTML and the result of another function?
- How to pass a variable from a template page to the child theme functions.php
- Instead of using $post, how do i get the thumbnail image of the $post
- Login functions
- Home/Static Page View for Visitors pages after that should be restricted
- functions.php filters not applied in AJAX call
- wordpress not calling peliegro functions.php?
- Dynamically generated Navigation Diagram using Custom Fields
- Child Theme functions.php has no effect
- Define excerpt length by inserting read more tag
- Setting a cookie in functions.php and it gets deleted when working on an other function
- Hide certain post types from editors
- Problem with add_rewrite_tag
- Add functionality to post editor
- Update add_image_size
- Language switcher for subdomains
- custom post with loading script per single post
- Define an extra field for all pages (with no plugin?)
- Function to draw random image from specified category destroys site logic – why?
- Issues with add_query_arg() not passing a variable
- update_post_meta not working in function
- WordPress permanently logging users out
- What add_action reference should I be using or should I use do_action?
- What is wrong with functions.php? Fills error log with same error
- Function returning queried meta value based on current post ID
- List all post title in category using functions.php
- wp_enqueue_script only works outside of action
- How can I include user meta information in the resulting array of a WP_User_Query?
- How to add next height number in Order Attributes inside the Add new page. [duplicate]
- Adding custom field in menu options [duplicate]
- Quicktags external functions file
- Pagination in Search result
- Custom field not updating via functions upon publishing
- Pass max posts to Javascript
- Integrate WP Tiles into existing loop (index.php) and theme
- Updating site content after an AJAX call without a page reload
- disable WP_error: authentication_failed
- Function the_content
- Problem in outputting shortcode
- Edit TinyMCE Button Functionality
- Problem in shortcode outputting content
- Load a Child Theme’s style.css just before the closing tag
- Load CSS conditional on custom field is present