You can do this using below code.
if ($slide_title) {
$strret .= '<div class="container">';
$strret .= '<a class="'.$slide_linkurl.'"><h2>'.$slide_title.'</h2></a>';
$strret .= '<p>'.$str.'</p>';
$strret .= '<a href="'.$slide_linkurl.'" class="da-link">'.$slide_linktext.'</a>';
$strret .= '</div>';
}
Related Posts:
- Best way of adding CSS which can be manipulated by the user via theme option panels?
- Using PHP to toggle stylesheet and header image, set in cookie
- Shortcode content output but not in correct place
- Hide Hamburger Menu On Specific Page (Front Page/Home Page)
- How to style options page in dashboard?
- Css loads very slow [closed]
- responsive.css in the WordPress should be prioritized
- height should be set to auto to avoid pixelation in the post thumbnail function
- Creating a mobile site by adding a new class to the body tag from functions.php
- CSS change in woo commerce Place Order Text [closed]
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- how to changes mobile menu toggle breakpoint in WordPress
- PHP function for horizontal Woocommerce thumbnails and badges
- Problem with displaying CSS Stylesheets – Am I adding them correctly in my wordpress child theme?
- I got big white screen when i attach main style sheet of Html in functions.php
- Site title not showing. Please help me
- PHP/CSS: Shortcode won’t display correctly, and only displays in the head (before content)
- Add class for the_post_thumbnail_caption()
- Displaying POST content with HTML tags and all
- Highlight Single Page Ancestor
- Styling admin page rows in order of importance (checkboxes)
- How to have Function of a plugin using global vars into a shortcode?
- Cant get theme to change footer color through theme customizer
- How to add margin underneath woocommerce total price amount -> productpages
- How do I get Roboto Google Font to display normal font-style? [closed]
- Integrating CSS Into a WP Function Call [closed]
- Load slideshow.css file only if Slideshow is checked / on
- Sorting Problem
- How do I make a shortcode to display Dokan seller badge list?
- How can we upload custom page files?
- Calling a PHP function from a menu item
- Hide or Show Read More Button by Content Area
- PHP code in page template vs functions
- Apply class to every paragraph that holds image?
- username_exists() function can’t be access without logging in
- How to target with css, admin elements according to user role level?
- Inserting Gravity Form checkbox values into Advanced Custom Fields [closed]
- Delete post revisions on post publish
- How to Append to the_excerpt() Function
- WordPress Customizer not setting default value upon initial install?
- Why do filters/actions require an argument count?
- How do I list the_tags() into HTML data-attribute
- Check if term object is in array
- Highlight Current Tag in wp_tag_cloud
- Getting rid of role=”navigation” in the Home Page Pagination
- syntax issue on php 7.4
- How to remove the excerpt in the Dzonia Lite theme
- How can I hide Home in my menu in a specific page?
- Get first URL from post content
- Setting custom canonical urls
- Trigger popup in a php if/else statement
- Setting a cookie upon specific URL visit
- How to output a PHP file values by shortcode?
- Logged in user ID as post ID
- How to add condition in wordpress loop? [closed]
- 3 Slashes appear after Apostrophe in custom fields after updating product-site
- Add class to group inner container
- Use .php file as page instead of wordpress page & template file?
- Change CSS based on is_user_logged_in
- Illegal string offset in PHP function
- Find hours between post_date and post_date_gmt
- Run a code only on theme activation only during first activation
- Shortcode from a function not working
- PHP code for displaying WordPress posts in a static page not working
- Shortcode for Listing Users from Meta Value?
- Display css ONLY on most recent post of specific category?
- How to add data to a custom field at the wp_users table?
- How can I use custom menus with a Bootstrap WordPress theme?
- Child Theme’s Read More Text
- call a string/function from database
- Get date function not working
- How to remove/hide collapse menu for user/subscriber?
- How to implement __() function in my theme’s php file?
- How a HTML form can trigger a PHP function?
- Get current user id in function php
- Proper way to remove html code on child theme
- Trying to add Custom Post Type to this functions.php command
- Apply function.php filter only if url not has /amp/
- Non-blocking file_put_contents in function.php
- Display a custom name when the user has no name settle in his account
- Discount in the specific product title using keyword ( Woocoommerce )
- Make a full-width wordpress page
- Modify post image in full size
- How to link all featured images to custom url in single.php for only non-logged-in users?
- Menu to the right of screen on desktop using Bootstrap 4
- custom post type column countdown
- Creating wordpress user registration form
- Add missing alt tag to featured images for “storefront” theme
- Display specific main Sub Nav on Woocommerce product pages
- My query keeps looping infinitely ! how to stop it?
- Published custom posts missing
- Registration form not registering First and Last name
- Removing get_template_part in child theme
- Why isn’t my link attribute getting my css?
- How to get the rating value of each comment
- How can I fix my pagination?
- can someone help me what’s wrong with this code?
- Fatal Error: Uncaught ArgumentCountError: Too few arguments to function – on logout of wordpress dashboard
- Why is my custom email notification after purchase not sending?
- Image alt tag is showing post title instead of Alt Text