How to migrate the menu from the site on my own theme in WordPress?

Yes, it is typically possible to re–create arbitrary markup in WordPress. However the difficulty of the task varies from easy to highly challenging. Sometimes it is easier to bend to markup WordPress gives you, than bend markup to precise state. For navigation menus there are basically two levels of control over markup: As per wp_nav_menu() … Read more

Making wordpress menu horizontal [closed]

If I understood correctly you are trying to position output of wp_nav_menu() in horizontal line. Your should try styling <li> elements, instead of all <div>. Also width: 100%; should be removed. Something like this seems to work: .mythirdclass li { float: left; padding: 0; margin: 1em; list-style-type: none; display: inline; }

Theme styling for plugins

Your two options are to add your own stylesheet to redefine the plugin’s styles, or remove the plugin’s css file entirely by dequeueing the stylesheet (assuming the plugin has correctly added the stylesheet via the API) function wpd_my_theme_css() { // dequeue plugin css with same handle it is enqueued with wp_dequeue_style( ‘plugin_css_handle’ ); } // … Read more

Determine Featured Image Size in header

well your question is a bit confusing because you say you had 192px “Thumbnails” assuming you mean the_post_thumbnail then the actual original image size that you uploaded originally could and would most likely be larger, in which case the regenerate thumbnail plugin would work for you. when you say you can not access featured images … Read more

How to get $post object available inside functions.php to localize script?

The wp action hook fires pretty early, before the $post object is set. I would suggest using the appropriate hook wp_enqueue_scripts instead, and amending your code to: function profolio_localize_script () { if ( is_singular( ‘my-gallery’ ) ) { $layoutType = get_post_meta( get_queried_object_id(), ‘gallery_layout’, true ); // Rest of code } }

Use random theme

I’ll preface this by saying I don’t think it’s the best of ideas, but in the interest of answering the question… The general idea is to filter template, option_template, and option_stylesheet in a plugin and return your desired template slug. The rest of the code is just setting and reading the cookie. <?php /** * … Read more