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

getting id of page

I think this is what you want: $qobj = get_queried_object(); var_dump($qobj->term_id); get_queried_object will get information about the current page. That information varies by type and content for different pages but on a taxonomy page it will give you a stdClass object with taxonomy data related to that page..

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