New answers tagged

0

Rather than editing Wordpress or your theme's source code you're better off using the "Additional CSS" option found while customizing your theme appearance within the admin menu. Using Google Chrome or similar, load your up page, right click on the header region then select "Inspect". You will see on the left of your screen the CSS styles associated with ...


1

If you want the phpBB page to have the same look/feel of your site, there are two ways to do it. 1) Build a phpBB 'skin' with the elements you want. 2) Build a custom page template, and put the call to phpBB inside the page area of the template. Either way is probably a lot of work; phpBB and WP have totally different ways of 'skinning' a page. You might ...


0

As mentioned elsewhere here, the display of your posts/pages depends on the theme that you are using. And making changes to the theme's code is not recommended, as any changes will be overwritten with a theme update. That's why you would create and activate a Child Theme to make changes. (Although you can make simple CSS changes via Admin, Themes, ...


0

In your theme's file functions.php: add_action('wp_enqueue_scripts','STACK_356524_add_css_js_on_page',99); function STACK_356524_add_css_js_on_page(){ global $post; if($post->post_type=='page') { // check if the current wp object is a `page` also is_page() can be used: see https://codex.wordpress.org/Conditional_Tags wp_enqueue_script( '...


-1

Open up the root directory of your Wordpress folder and then navigate to wp-content/themes/ to see all the installed themes. Select the theme you're using and that folder will contain all theme specific code, including template files.


0

Much of the code for any page, including header and footer, comes from your theme. If you want to create fully custom code, your best bet is to create a child theme (which just means creating a "style.css" file with some comments that refer to the parent theme, which is what you're currently using) and inside the child theme, create custom templates. It's ...


0

Try with array method, using reply post type with its parent. <?php $args = array( 'post_type' => 'reply', 'status' => 'approve', 'post_parent' => $postID, 'posts_per_page' => 50, 'orderby' => 'date', ...


0

Andy, it did not work, but I think it is because it is not matching to out template's ending, after the setup_postdata( $post ); ... We have this padding: <div> <h3 style="padding-bottom:6px;"> <a href="<?php echo esc_url(get_permalink($post->ID)); ?>"><?php the_title(); ?></a> </h3></div> ...


0

Something like this should work. I've added some explanation to the code in comments: <div class="title text-center"> <h1><strong><?php the_title(); ?></strong></h1> <img src="<?php echo get_template_directory_uri(); ?>/images/title.png" title="title-line" alt="title-line"> </div> <div id=...


1

I just installed a fresh copy of Wordpress and tried to create one parent page Pages are just pages, there's nothing special about parent pages, and it's not a term normally used but the page shows no content If the page has no content, then there is no content to show regardless of which Official WP theme I use Themes display pages the same, some ...


0

Copied from comments, so the question will indicate an answer has been provided: Found your key symptom. Inspecting your Impressum page with Chrome indicates loads of 404 errors. For example: http://darius-mann.com/smardigo/impressum/costum/hexagon/hexagon.js not found. If I remove the "impressum/" the file opens correctly. However your theme is building ...


0

The only way I can think of to achieve this without any custom coding is if your theme already displays Category descriptions. When you edit a Category, there is a "description" field where you would place the static information. However, many themes don't display this information. So, if you try adding a Category Description in wp-admin and it doesn't ...


0

You can get all ancestors with get_post_ancestors. The root ancestor is the last element of the returned array. Here is the function that checks a target page id against the root ancestor of current page: function check_page_parent( $target_page_id ) { $ancestors = get_post_ancestors( get_the_ID() ); if ( $ancestors ) { $...


0

You need to use either the pagetemplate called "100% width" - else you'll need to change the settings for the column, to allow it to go 100% in width - and remove the custom padding (set to 30 or 50px on each side).


0

Do you want to find them by name? If yes then you can <a href="<?php echo site_url('/services'); ?>"> Services </a>


0

That was file/folder owner issue.


Top 50 recent answers are included