Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #905122

    Hi
    in Enfold-Settings ís this option:
    “Show element options for developers”
    – It is checked
    – If i give an element a class this class does NOT show up in the HTML and therefore i cant adress it via CSS.
    – I dont have any plugins installed which might cause that disfunction
    – I can not give you access – website is on localhost

    This is the content of my child-themes functions.php

    <?php
    /*
    * Add your own functions here. You can also copy some of the theme functions into this file. 
    * WordPress will use those functions instead of the original functions then.
    */
    function enqueue_parent_theme_style() {
          wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
    }
    add_action( 'wp_enqueue_scripts', 'enqueue_parent_theme_style');
    
    /* Proper way to enqueue styles and scripts
     */
    function theme_name_scripts() {
    	wp_enqueue_style( 'style-name', get_stylesheet_uri() );
    }
    add_action( 'wp_enqueue_scripts', 'theme_name_scripts' );
    
    /* Activate Avia debug mode */
    add_action('avia_builder_mode', "builder_set_debug");
    function builder_set_debug()
    {
    	return "debug";
    }

    Why cant i access the CSS-class i gave to an element?

    Kind Regards
    Brita

    #905133

    Hey Brita,

    Could you please create a temporary admin login and post it here privately so we can look into it?

    Best regards,
    Yigit

    #905517

    The answer to your question is already given in my first post.
    Please read.
    Thanx

    #905668

    Hi,

    Sorry but i cannot see private content field in your initial post. Could you please try posting it once again?
    Edit: Localhost, must have overlooked. Will replace functions.php file with your on my local installation and will update you here :)

    Best regards,
    Yigit

    • This reply was modified 6 years, 10 months ago by Yigit.
    #905717

    Hey!

    I replaced functions.php file with yours on a child theme on my local installation and tried adding custom class to elements and they are working fine for me. Attached a screenshot in private content field.

    Does that happen on certain elements on your end? Also, could you please try de-activating all active plugins just so we could rule out plugin conflict possibility?

    Regards,
    Yigit

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.