Forum Replies Created

Viewing 15 replies - 511 through 525 (of 3,465 total)
  • As you can see now the child theme has no css and functions.php. So you’re explanation is that my fukusawa-child should work with only the parent style.css is incorrect.

    When child theme has no function.php and with nothing in the child theme stylesheet (except the info in the top), your expectation is that the site with this child theme should appear as normal as if there is only main theme (with no child theme).

    But that’s not true as stated in my first post.

    Theme will enqueue stylesheet from theme in use (see explanation in my first post), and in this case the theme in use is a child theme (with empty CSS), so the site looks like no style.

    So in our child theme function, we only need to enqueue parent style.

    I just installed Fukusawa theme in my local dev and created a child theme with that function posted above and it turned out working just fine, parent and child stylesheets load correctly in order

    here is what shown in HTML’s <head>

    <link rel='stylesheet' id='parent-style-css'  href='http://localhost/wp/wp-content/themes/fukasawa/style.css?ver=4.4.2' type='text/css' media='all' />
    <link rel='stylesheet' id='fukasawa_googleFonts-css'  href='//fonts.googleapis.com/css?family=Lato%3A400%2C400italic%2C700%2C700italic&ver=4.4.2' type='text/css' media='all' />
    <link rel='stylesheet' id='fukasawa_genericons-css'  href='http://localhost/wp/wp-content/themes/fukasawa-child/genericons/genericons.css?ver=4.4.2' type='text/css' media='all' />
    <link rel='stylesheet' id='fukasawa_style-css'  href='http://localhost/wp/wp-content/themes/fukasawa-child/style.css?ver=4.4.2' type='text/css' media='all' />

    This will get rid of white space between body and footer on home page

    .home.page #upside-page-content > div.vc_row-fluid:last-child {
      margin-bottom: 0;
    }

    I’m not sure for other pages (since the theme is built with drag and drop visually thing) but you can try that same code without the .home.page part.

    This code is what makes it so

    #main-content > .kopa-area > .container {
    width: 100%;
    }

    we can put this underneath it to have side margin for single post page

    .single-post #main-content > .kopa-area > .container {
      margin: 0 5%;
      width: 90%;
    }

    when I use chrome, everything is much much smaller.

    Can you make sure the zoom is not in effect? Just click Ctrl+0

    Edit: Ahh didn’t see @alchymyth post above 🙂

    Use this code in Custom CSS plugin or in theme option if available. It will nullify theme’s link style in post content.

    .entry-content a:not(.more-link) {
    	background: none;
    	color: inherit;
    	text-shadow: none;
    }

    Doing this will result in bad UX though because link should be easy to see as link and the underline text is sort of a web standard for link.

    Make sure the function to enqueue style in your child theme functions.php is something like this

    add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
    function my_theme_enqueue_styles() {
    	wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    }

    Look at this line #L68 (from parent theme’s functions.php)
    https://themes.trac.wordpress.org/browser/fukasawa/1.08/functions.php#L68

    The handle fukasawa_style is what now output in your site’s HTML head, meaning it’s loading style.css from child theme folder because parent theme is using get_stylesheet_uri() (it will always pull style from theme in use whether it’s a main theme on its own or a child theme). So when we make a child theme we only enqueue style from parent and also make sure it loads before, usually it will load before because WordPress run child theme function first.

    I’m glad you got it working!

    In regard to SEO it’s another subject on its own. So please open another support question, post it in the theme’s sub forum via this link
    https://wordpress.org/support/theme/responsive

    or at theme’s official support here
    http://cyberchimps.com/forum/free/

    Please take a look at this instructional video made by plugin author
    https://vimeo.com/77878709

    The part from 03:40 is about making new front control.

    Forum: Themes and Templates
    In reply to: Enlarge logo

    Unfortunately the logo upload only available for pro (paid) version of the theme, so if you like the theme you can support theme author.

    You can also post a request to theme author asking if it’s possible to have this option for free version too, post the question here in theme’s own forum at this link
    https://wordpress.org/support/theme/skt-yogi-lite#postform

    Using free version as it is now, we can still achieve that with a CSS Image Replacement technique, just do some research on it.

    Is there any way to add a break line or a bold text?

    Actually that’s available via standard WordPress Editor (both Text mode or Visual Mode), the Text mode is formerly known as HTML mode where we can use basic HTML tag, and the Visual mode is the so called WYSIWYG.

    If you want to put in one linebreak just click Enter (soft enter), to have one blank line just click 2 enters. To make more room, instead of several blank lines (which WordPress will collapse into one anyway), just increase the bottom margin (or bottom padding) of the paragraph via CSS.

    To rule out the problem, first let’s make sure we are talking about the same slider plugin here https://wordpress.org/plugins/ml-slider/

    Secondly, test with normal shortcode inside some post (we can just make a test post and make it a draft not really publish it), and put in this shortcode

    [metaslider id=1703]

    If that doesn’t work, then it’s something wrong with the plugin or the way you configure it. So make sure we have it working properly first.

    If that does work, we now test the child theme with the exact unedited copy of header.php from parent theme. See to it that it works normally.

    Then put in that code (my first answer with your own slider id=1703) at the very bottom of it.

    You mentioned that you created child theme via plugin and you copied over header.php into it via child theme editor, this part worried me because it sounds like you are editing functions.php or style.css, I don’t really use WordPress editor to edit file live on the site but from what I remembered WordPress editor doesn’t allow file creation. So please make sure you create a new file (file name and its content same exact of header.php from parent).

    Forum: Themes and Templates
    In reply to: Photo CSS Help

    No problem I’m happy to help.

    Thank you for letting me know the problem. Now I figure out why it didn’t work, look at Line#15 again, it uses get_stylesheet_uri() meaning the main theme will load child theme stylesheet automatically when there is child theme in use.

    So in our child theme functions.php should look like this

    add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
    function my_theme_enqueue_styles() {
    	wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    }

    I installed the theme in my local development and tested it out, now both stylesheets from parent and child load properly in order

    <link rel='stylesheet' id='parent-style-css'  href='http://localhost/wp/wp-content/themes/parabola/style.css?ver=4.4.2' type='text/css' media='all' />
    <link rel='stylesheet' id='parabola-style-css'  href='http://localhost/wp/wp-content/themes/parabola-child/style.css?ver=1.6.1' type='text/css' media='all' />
    Forum: Themes and Templates
    In reply to: Photo CSS Help

    I want to be able to say “apply this CSS to all images across the site except those that have such and such code applied to them in the post edit box”.

    Yes as I stated earlier that we need more specific condition.

    To get the idea, please do some research on these topics

    “WordPress body class”
    “WordPress post class”
    “CSS attribute selector”

Viewing 15 replies - 511 through 525 (of 3,465 total)