Forum Replies Created

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • in reply to: Mobile menu reveal on scroll up #1129682

    My solution was pre WP5 and the latest Enfold updates. I doubt it still works.

    in reply to: Shortcodes missing under magic wand #1026644

    Is there any way to activate the full list within all the of Advanced Layout Editor text editors?

    The best solution for this I found if you don’t want to modify the main theme files in case you were running a multisite or something.

    1. Go to widgets.
    2. Create a new custom widget area.
    3. Add the “Enfold Latest News” widget. If you run a child theme it will be named “child theme’s name Latest News”.
    4. Configure and Save.

    5. While in the advanced layout editor of a page or post, add a “widget area” element and select your new area.

    Two magazine elements with an Enfold Latest News widget beneath.

    On the left column, there is a magazine element. Below it is the Enfold Latest News widget.

    Now you can make them look the same or to your liking with css. Hide the image and the time with css. Then you can switch the date and title’s <div> order by using the following CSS. NOTE: Target the CSS to your element to avoid conflicts in other areas.

    .news-headline {
    display:table;
    }
    .news-time {
        display: table-header-group;
    }
    in reply to: Mobile menu reveal on scroll up #1017694

    @pointbreakd I posted the original solution and I am a developer. You can find me by googling ‘vividux’. I should be the first result. or just add a dot com to that.

    in reply to: Adding an icon to the form submit button. #828728

    You can open the imgur links in a new ta to view the imgs.
    Submit button with debugger
    I replicated what you have done above.

    The icon is there, but I believe it will never appear with the <input> tags. This is why I had to resort to editing the framework PHP file to change it to a <button>.

    I feel like it is way more work to change the behavior of an HTML5 <tag> than to just use the correct <tag>.

    working icon submit button

    • This reply was modified 7 years, 4 months ago by talawar. Reason: Imgs not working
    in reply to: Adding an icon to the form submit button. #828684

    Now I see what you are saying. I still think you need to edit the framework file to make that input into a <button></button> tag. The form button field (RED ARROW from your image) is placed into <input type="submit" value="Submit <span class="avia_button_icon avia_button_icon_right" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></span>"/>

    Am I correct in saying you are getting this: Submit <span class="avia_button_icon avia_button_icon_right" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></span> instead of this Submit >.

    Again the root of the problem is trying to put HTML into a data-attribute, which we are limited to with an <input/> tag.

    This StackExchange answer may be what you are looking for https://stackoverflow.com/questions/5823835/html-in-the-input-field-value
    I tried replacing the brackets, but it still escaped the HTML.


    @Guenni007
    Your method would be far superior. Sidenote I always appreciate your answers! You definitely add some amazing solutions on this forum, I applaud your effort!

    • This reply was modified 7 years, 4 months ago by talawar.
    in reply to: Adding an icon to the form submit button. #828664

    @Guenni007 if you are asking how I added the symbol I want to the framework PHP, the simple answer is I copy and paste it.

    For example the code below gives me the right arrow icon:
    <span class="avia_button_icon avia_button_icon_right" aria-hidden="true" data-av_icon="" data-av_iconfont="entypo-fontello"></span>

    In order to get the code above in the first place, I create a normal button or stand alone inline icon. Then I “publish/preview” the page. Inspect the icon with the debugger and copy the element.

    The problem is that the icon character (the square gylph), data-av_icon="" isn’t found until enfold runs it through its fontello code, so that is the easiest way to figure out the proper value for data-av_icon="".

    in reply to: Adding an icon to the form submit button. #828548

    I ended up editing the parent theme… framework/php/class-form-generator.php

    Line 322
    Replace the <input> tag with <button>HTML that to display</button> leave all of the

    The <input> is just too limited to work with using jQuery or Javascript. The value=”” attribute doesn’t do well with HTML.

    I found the easiest way to get the desired HTML ( a button with an icon ) with the minimal CSS styling adjustments, was to inspect an existing button in the chrome debug window.

    Copy the element at this parent div: <div class="avia-button-wrap avia-button-center el_after_av_hr avia-builder-el-last main_btn">
    Remove the identifying class e.g. “avia-builder-el-48″ if your choose to”
    The I removeded the href="" and change the <a> tags to <span> tags.

    One draw back that I haven’t solved is that the page will now refresh on “SUBMIT.” I don’t feel it is essential to this project but it would be nice to figure this out for the future. It is a bummer that I will have to update the parent everytime…

    I used the following CSS to stop the unwanted styling effects:

    
    .avia_ajax_form .button {
        margin: 0;
        padding: 0;
        border-radius: 2px;
        border-bottom-width: 0;
        border-bottom-style: none;
        font-weight: 700;
        font-size: 0.92em;
        min-width: 142px;
        outline: none;
    }
    .main_color .button:hover {
    background:white;
    }
    

    Finally I added a class, “someclass”, after class="avia_iconbox_title someclass" like this to finish the styling.

    in reply to: Adding an icon to the form submit button. #828413

    You are correct Mike, I tried that. The shortcode won’t save in that form. It is just a basic form nothing special about it. I can’t link it because it is in dev behind a firewall. I decided the design could let this one go. I figured I could edit the theme’s PHP file for the form, but that isn’t in my client’s budget. I was hoping for some kind of filter in the themes function file or some kind of CSS trick that would be a quick fix.

    I saw a couple forum posts about adding it as a BG image, but that just seemed too sloppy for my taste.

    I was thinking there would be a function that could disable the escaping of the HTML for that one field in the form options template, that would allow me to insert the plain HTML markup.

    • This reply was modified 7 years, 4 months ago by talawar. Reason: Grammatical error
    in reply to: Tab Section: Active tab url link. #788829

    I wouldn’t want to create duplicate pages for SEO purposes. I’ll just have to program it with some JS.

    in reply to: Mobile menu reveal on scroll up #770723

    @thatsmyname in your child’s functions.php add the headroom.js before the custom.js (‘SW_custom_js.js’ in your case.)
    NOTE: Code below uses custom.js not SW_custom_js.js.

    function custom_function() {
    	wp_enqueue_script( 'headroom', get_stylesheet_directory_uri() . '/js/headroom.js', false, NULL, 'all');
    	wp_enqueue_script( 'custom', get_stylesheet_directory_uri() . '/js/custom.js', array('jquery'), 2, true);
    }
    in reply to: Custom Widget Area Can't Delete the Area #740049

    I figured it out.

    Sorry, I was referring to the title of the post and I forgot to recap it in the post.

    I added custom widget areas in my widgets panel. Then when I was trying to delete them the delete function wasn’t working, resulting in the spinner continuously spinning. There was no possible way to delete these certain sections.

    SOLUTION:
    Log into the DB. (I used phpMyAdmin)
    open table : wp_rxcwrn_options
    edit row: avia_sidebars

    Now the data is serialized so be careful editing the array

    Here is an example of how to do it:

    a:2{i:0;s:21:"great sidebar";i:1;s:9:"sidebar that will not delete";}

    Should look like this to delete “sidebar that will not delete”:

    a:1{i:0;s:21:"great sidebar";}

    NOTE the a:2 changes the a:1. a:x is equal to the number of custom widget areas you have. This doesn’t include the footer widgets or the default sidebars.

    I hope this helps someone.

    in reply to: Mobile menu reveal on scroll up #734612

    headroom.js works like a charm.
    CSS

    
    .headroom {
      will-change: transform;
      transition: transform 200ms linear;
    }
    .headroom--pinned {
      transform: translateY(0%);
    }
    .headroom--unpinned {
      transform: translateY(-100%);
    }
    .headroom--unpinned--action {
      transform: translateY(calc(-257%));
    }

    JS

    window.onload = function () {
    
      
        var mainHeader = document.querySelectorAll("header")[0];
    
        var headroomMain = new Headroom(mainHeader, {
            "offset": 60,
            "tolerance": 10,
            "classes": {
                "initial": "headroom",
                "pinned": "headroom--pinned",
                "unpinned": "headroom--unpinned"
            }
        });
    
        headroomMain.init();
    };

    helper-main-menu.php (includes/helper-main-menu.php)

    
    <header id='header' class='all_colors header_color  headroom <?php avia_is_dark_bg('header_color'); echo " ".$headerS['header_class']; ?>' <?php avia_markup_helper(array('context' => 'header','post_type'=>'forum'));?>>
    

    You must download and add headroom.js library.

    • This reply was modified 7 years, 10 months ago by talawar.

    Ah ok I was looking for a JS file in my brief search. Thank you!

    Thank you for your support. I would be happy to do the customization myself. I was hoping you could at least point me to the files that contain the code since you are more familiar it the architecture of the theme it would save me a lot of time.

Viewing 15 posts - 1 through 15 (of 15 total)