Back button to previous page and breadcrumbs

For the button behavior, If it’s a one-off use case, you could add custom php conditional to check the referring url $_SERVER[‘HTTP_REFERER’] and current page/post ID or url. Then, either add a class to the button’s containing div wrapper in the template for hiding via css or directly output/include the button html in the template … Read more

Img src path from wp-admin

Best to use a images folder in your child theme and output like this: $output = sprintf( ‘<img class=”your-class” src=”https://wordpress.stackexchange.com/questions/259497/%s” alt=”https://wordpress.stackexchange.com/questions/259497/%s” />’, get_stylesheet_directory_uri() .’/images/image.jpg’, get_the_title( $post->ID ) ); echo $output;

Images in sub-pages fail to load

Your problem has nothing to do with htaccess. It’s that you’re using relative paths where you should be using absolute paths. (Here’s an explanation of the difference) Probably the best way to reference any assets in your theme (assuming your theme has an “images” subdirectory) is to do something like: <?php echo get_bloginfo(‘template_url’) ?>/images/your_image.jpg The … Read more

Absolute path in WordPress Network site

It is a googd practice to write references to files from CSS file using relative path to the theme and not one absolute. So, for instance: background: transparent url(‘images/sprite_phone.png’) no-repeat 0 0; Anyway, on your case there is something wrong with the uploaded file, because none of the paths you give above work.

Path for contact form file

You could put both the form and processing logic in the same file and submit the form to the same page by omitting the action attribute. Check $_POST vars to see if the form has been submitted and do your processing, otherwise display the form. if( isset( $_POST[‘somevar’] ) ) : // process submission else … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)