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
- Ajax call always returns 0
- plugins_url vs plugin_dir_url
- Where and how to put inline js in pages
- Is it possible to remove the “standard” post format?
- Is checking whether the blog is installed necessary?
- Custom excerpt showing first paragraph (with HTML formatting)
- Overriding methods in a child theme
- WP disobeys disabling of the posts revision feature
- How do I deactivate a plugin for some roles
- How to get the excerpt of a page before more tag?
- How to display more audio file ID3 tags in WordPress
- Running CRON on Server with WP Function
- Having a Function Inside of the Loop
- how to call a function only in specific pages and exclude it from other pages
- Error when adding excerpt to the content through functions.php
- Add dynamic links in WordPress custom theme
- Unable to login using username
- How to change the order of Jquery in the footer of my theme?
- media resize/crop possibilities?
- adding custom script to functions file
- Hook into a function without a hook?
- add_action template_redirect not working for home page
- Way to store featured image width and height in two separate variables?
- Insert template-part inside the content
- Add unique id to Preview URL
- Numbering lines of code with the tag?
- Latest Foursquare Checkin function
- Way to redirect all Product Sub Category to its Main category Page?
- Fatal error: Call to undefined function is_even()
- How to use parent theme functions in child theme functions.php file?
- How to change a specific admin label
- How to add extra value to permalink
- Bulk updating a group of WordPress Pages every 10 minutes
- remove_filter function to unhook twentysixteen parent theme function
- Can we have conditional CSS styling?
- Change function without filter hook
- How to add javascript code into Divi child theme?
- ACF Filter return value
- How to build two WordPress site using two different themes with same database (No ! I am not taking about multisite network)?
- Keep js after reload the page
- Add array of category IDs to global variable?
- Need some Tweak my nextpage Function
- Changing the color of post title [closed]
- Create html from function
- Admin Panel errors because of functions.php
- WordPress not performing direct update
- Using Output from one Function and calling it into another
- How to add a class and title attribute to the link generated by next/previous post
- “Headers already sent” while trying to add a CSS file to my login page?
- Notice: Use of undefined constant REQUEST_URI – assumed ‘REQUEST_URI’ in ….functions.php on line 73
- Customizer cuistom CSS Priority ordre Issue
- WPDB query suddenly not working