New answers tagged

0

If I get what you're asking, it's that you want a way to remove the <style> tag from your header - correct? Definitely a good idea to do this - just keep the bare minimum there. This way, styles can be managed separately to your markup - keeping the presentation layer separate is best practice. All of your CSS you can then put into an external file, ...


0

If theme has name in it mostly in the logo at demo sites, Your customer will be able to get the price from Google anyways. So taking screenshots won't be enough too, take screenshots and tweek the logo and text whereever it is about theme, then you can actually hide the original theme and price from client.


0

I think you may be mixing up a couple of concepts here. Use the new template page you made and name it archive-portfolio.php. This will display all portfolio post types in your new template at yoursite.com/portfolio and the url for the portfolio items should take care of itself. They will still be at yoursite.com/portfolio/item1 so no need to change the ...


-2

Now, without your code is difficult to answer; however, I will give you some code you can adapt to your own classes to make that effect. First you need to tell your element how long the transition should take: -webkit-transition: all 0.5s ease-in-out; -moz-transition: all 0.5s ease-in-out; transition: all 0.5s ease-in-out; Then you can make your ...


1

The following is not a solution to just insert into a regular WooCommerce catalog page. However, this would easily serve as a basis for someone trying to achieve that. Background: I'm building an Angular/JS app to load on the archive-product page, which will handle everything including the cart until a user is ready to proceed to checkout... at which point ...


2

The best solution to customize a theme is to create a child theme. You can then copy the file footer.php from parent theme to child and edit it by removing the lines that outputs "{site} / Proudly powered by WordPress". That way you will be sure that any changes made will remain even after updating the parent theme.


3

The quick and dirty way would be to either delete the two lines that are 'resposible' for the message, or wrap them by comments / comment-them-out. In your theme folder 'twentysixteen' look for the theme file 'footer.php' Around line 50 look for the following two lines: <span class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?&...


0

It's a bad idea because woocommerce has about 20 translations. In that case you have to translate the modified text domains, or if they don't the 50% of woocommerce will be english, but I want spanish.


-3

I think something may be misunderstood here, or as another responder considers, maybe cache. The first thing I notice is the odd code within the file snippet you show. Both === style.css === and the function one will or should break the site. Both style and function should be their own files and they surely should not contain such a label. Id suggest ...


0

As long as you don't delete your theme by ftp, but use the regular way of switching to another theme in the admin, there is a hook to use, switch_theme. It works like this: add_action('switch_theme', 'mytheme_setup_options'); function mytheme_setup_options () { delete_option('mytheme_option1'); delete_option('mytheme_option2'); } There's a sister ...


1

The hook to use is wp_enqueue_scripts instead of wp_print_scripts


0

You can use the body's classes : body.single-artist #main{ background-color:red; }


0

Collapse the <div id="main">. I hope that you have <article> tag which id and class attributes like below <article id="post-212" class="post-212 post type-post status-publish format-video has-post-thumbnail hentry category-resources post_format-post-format-video active"> Inside the class attribute you can find the post type as type-post, ...


0

If the javascript file is loaded from the admin dashboard, you can use this javascript function get the root of your WordPress installation. function getHomeUrl() { var href = window.location.href; var index = href.indexOf('/wp-admin'); var homeUrl = href.substring(0, index); return homeUrl; } Then just contact the path to your theme like below. ...


0

Okay so I figured out what was happening - either the new theme or an unintentional wordpress update, lead to media links being handled differently. My new theme now only needs the URL - no shortcodes or iframes - and it seems to automatically process it to display how it used to display them. Only issue with this is that the old posts have to be edited to ...


1

You can delete it from the footer.php file or you can hide the CSS that displays it which is better in case you update the theme as the footer.php file may get over-written. If you choose the CSS route, then paste the following into your CSS file: #site-generator { display: none; }


0

I had the same problem, this link explains how to change your filesize upload limit https://www.digitalocean.com/community/tutorials/how-to-change-your-php-settings-on-ubuntu-14-04 Basically find your php.ini file, and change these two below to 30M post_max_size = 8M upload_max_filesize = 2M


0

In wordpress a translation is part of the code. If you change translations you should track the .po files in "git" as if it was any other kind of code. An alternative option is to override the textdomain used for translation and use another one that uses another .mo file located at some "safe" location. But this is just a band-aid over the "translation is ...


3

You got some things mixed up here - let me try to point you in the right direction. Terminology In WordPress, a theme is a set of files and functions that provide the frontend look for your Website. Most themes also include some specific functionality, but the main goal of a theme is to style your WordPress website according to your needs. A WordPress ...


0

The earlier hooks that template_tags are working is wp action hook. All hooks before that one like init hook won't work for template tags like is_front_page()


2

Not a direct answer, but probably has to be said - this is one problem you should avoid solving unless you are talking about a local development in which case you can just set permissions to 777. The reason is that if the webserver can overwrite your code, then any malicious code running on it will be able to do that as well. The risk is just so much bigger ...


0

Go to ADMIN Dashboard and than go to Settings -> General and select your language (Polish). Install New plugin "Loco Translate": https://wordpress.org/plugins/loco-translate/ and follow the Basic usage Under Installation Tab (In wordpress org)



Top 50 recent answers are included