posts stuck as drafts

You probably have some custom functions in your themes functions.php Add a return; on top of this file. If the problem is solved: Move it below the first function. Proceed this way until you’ve found the function that is causing the problem. If this doesn’t work: Go and do the same for one template file … Read more

Why do some sites show themes/”themename” as the only theme?

You can’t remotely inspect site’s files and directories. That’s not what’s happening here. The browser inspector is just reconstructing the structure based on the URLs of resources that it is loading. The browser sees that /wp-content/themes/themename/style.css is being loaded, and /wp-content/plugins/plugin/style.css and assumes that there must be /wp-content/themes/ and wp-content/plugins/ directories. So it creates a … Read more

Adding a new layout for genesis

I have attempted answering my own question with the following code: // Added to layout.php in /genesis/lib/structure.php add_action(‘genesis_before’, ‘modalwindow_layout_logic’); function modalwindow_layout_logic() { $site_layout = genesis_site_layout(); if ( $site_layout == ‘modalwindow’ ) { // Remove default genesis sidebars remove_action( ‘genesis_after_content’, ‘genesis_get_sidebar’ ); remove_action( ‘genesis_after_content_sidebar_wrap’, ‘genesis_get_sidebar_alt’); remove_action( ‘genesis_footer’, ‘genesis_do_footer’ ); remove_action( ‘genesis_header’, ‘genesis_do_header’ ); // Remove layout … Read more

HTML to WORDPRESS [closed]

Designing in plain ‘ol HTML and CSS could make easier. However, there are many features of the WordPress framework that you’ll miss out on. Read some of the WP documentation in the Codex to begin with: https://codex.wordpress.org/Site_Design_and_Layout I will also draw your attention to the body class attribute, which I find extremely useful when designing … Read more

Recent posts with comment count in “Sidebar” template [closed]

‘;’ is missing in this line echo “<dt>$recent_date &nbsp; / &nbsp; <span class=”comment”><a href=”$recent_link#disqus_thread”>$recent_count</a></span></dt><dd><a href=”$recent_link” title=”$recent_title”>$recent_title</a></dd>” For this reason code is throwing the fatal error. Please replace that line with this code echo “<dt>$recent_date &nbsp; / &nbsp; <span class=”comment”><a href=”$recent_link#disqus_thread”>$recent_count</a></span></dt><dd><a href=”$recent_link” title=”$recent_title”>$recent_title</a></dd>”;

Jquery Ui Tabs not working

Why are you using hosted versions of jQuery and jQuery UI when WordPress has local versions? To use tabs you need to add the tabs register code in a js file or in your footer (via the wp_footer filter) in your functions.php e.g. function wpse203799_footerscript(){ ?> <script type=”text/javascript”> $(function() { $( “#tabs” ).tabs(); }); </script> … Read more

How to make a sticky footer?

I think I figured out the answer. In your footer.php file add a div like that goes outside the footer and assign your footer class to it. For example, <div class=”sticky-footer”> <footer id=”colophon” class=”site-footer”> <div class=”site-info”> <?php /* translators: 1: Theme name, 2: Theme author. */ printf( esc_html__( ‘Theme: %1$s by %2$s.’, ‘best’ ), ‘best’, … Read more