str_replace remove words from title

the_title() will directly output the title – for your purpose in a string manipulation, you need to use get_the_title() https://developer.wordpress.org/reference/functions/get_the_title/ you also have some php syntax error; try to use: <?php echo str_replace( “(Blu-ray)”,”&nbsp;”, get_the_title() ); ?>

Infinite looping next post link within a certain category on a post

based on the docu: the $in_same_term parameter in https://developer.wordpress.org/reference/functions/next_post_link/ the categories’ parameters in WP_Query https://developer.wordpress.org/reference/classes/wp_query/#category-parameters and how to get a post’s category https://developer.wordpress.org/reference/functions/get_the_category/ and in collaboration with @zackwww; ‘infinitely looping ‘next post’ link at the bottom of a post that only links to posts in that category’ if( get_adjacent_post(true, ”, false, ‘category’) ) { next_post_link($format=”%link”, … Read more

How can I edit the final HTML structure of the whole web page

This theme has a companion plugin called hunk-companion. I ssh’d to my server and did grep -iRl “almaira_shop_show_frontpage” inside the wp-content folder and it returned this: plugins/hunk-companion/almaira-shop/almaira-shop-admin/almaira_shop_shortcode.php I found that in plugins/hunk-companion/almaira-shop/almaira-shop-frontpage you have all the sections’ .php files. You can now copy the code you need into your own page template file to create … Read more

Changing ALT-tag for logo in wordpress

Use the following code to replace the original code: if(!get_theme_mod(‘site_logo_dark’)) echo ‘<img width=”‘.$logo_width.'” height=”‘.$logo_height.'” src=”‘.flatsome_option(‘site_logo’).'” class=”header-logo-dark” alt=”your alt information here” />’; i.e. you’re replacing alt=”‘.$site_title.'” with alt=”your alt information here”. What the ‘.$site_title.’ means is the echo statement ends at the ‘ and then the PHP variable $site_title is appended to the string, and then … Read more