Someone created a child theme, but I need to modify it to reorder content. How do I access the child theme?

You are looking at the right files area. The HTML is created through the php files. These files can be accessed/edited through the editor as you are viewing or through FPT as Laxmana suggested. Through ftp it would be in your public_html/wp-content/themes/your-child-theme folder. It may not only be the index.php file that you’re looking to … Read more

Add a class to the anchor tag on HTML5 gallery

f you mean to add a class on the anchor image wrapper that you have added using wp-editor then you could add folllowing code : this will filter the content and add class to your image <?php function add_class_to_gallery($content) { $classes=”gallery-link”; // check if there are already a class property assigned to the anchor if … Read more

How can i add note, caution, warning quote inside the text? [closed]

You can hook into the_content filter and add your note after every post. Then you can style it to have a nice quote. add_filter(‘the_content’,’add_my_note’); function add_my_note($content){ // Write your note here $note=” <div class=”my-note”> <h3>Note Header</h3> <p>Note body</p> </div>”; // Append the note to the content $content = $content . $note; // Return the modified … Read more

Getting a specific post values to another div or modal

You can do it in different ways: Json Encode This is my favorite way of passing data/settings/etc to the front-end. PHP $obj=array( ‘content’ => $post->post_content, ‘title’ => esc_html( get_the_title() ) ); Now the button output will be like this: HTML <button class=”btn btn-primary tag_cnt get_button_more_info” type=”button” value=”<?=json_encode($obj)?>”></button> Javascript (function($) { $(‘.get_button_more_info’).on(‘click’,function() { var obj = … Read more

Inserting HTML tag with ACF into shortcode

You have to use do_shortcode() to execute shortcodes in your string Full code should be like that <?php function my_shortcode( $atts ) { $atts = shortcode_atts( array( ‘post_id’ => ”, // Default value. ), $atts ); $output=”https://wordpress.stackexchange.com/questions/291524/[acf field=”image” post_id=”” . $atts[‘post_id’] . ‘”]’; $output = do_shortcode( $output ); $output=”<img src=”” . $output . ‘” />’; … Read more

ACF page while loop breaks footer while loop

Looks like you need to add ‘option’ to your footer the_sub_field() calls: <p><a href=”https://wordpress.stackexchange.com/questions/307577/<?php the_sub_field(“footer_link’, ‘option’); ?>”><?php the_sub_field(‘footer_link_name’, ‘option’); ?></a></p> var_dump() is used to dump a variable, not a string, so you would need to do something like var_dump($test) for that line to work. You are probably getting errors and warnings in your PHP log … Read more