Forum Replies Created

Viewing 7 posts - 16 through 22 (of 22 total)
  • Posted in:
  • in reply to: Column backgrounds. #67549
    parkourgenerations
    Member
    Post count: 22

    Sorry, that’s not really what I meant. I was talking about getting the Row functionality for columns. It doesn’t matter now, I figured out how to have 50% width Rows and given myself a new option in the Wrap-type dropdown box. So instead of just having ‘Standard width content’ and ‘Full-width content’, I now have ‘50% width content’ too.

    The changes I made are below for anyone who wants to have it:

    Edit 1.
    File : dante/swift-framework/page-builder/builder/shortcodes/row.php
    Line : 129 – 135

    if ($wrap_type == "fifty-width") {
    	        	$colWidth = 'fiftyPercent';
    	        }	else {
    				$colWidth = '';
    			}
    			        			
    	        $output = $this->startRow($el_position, $colWidth, true) . $output . $this->endRow($el_position, '', true);

    Edit 2.
    File : dante/swift-framework/page-builder/builder/shortcodes/row.php
    Line : 214

    "value" => array(__('Standard Width Content', "swift-framework-admin") => "content-width", __('Full Width Content', "swift-framework-admin") => "full-width", __('50% Width Content', "swift-framework-admin") => "fifty-width"),

    Edit 3.
    File : dante/swift-framework/page-builder/builder/lib/shortcodes.php
    Line : 132 – 158

    public function startRow($position, $col_width = "", $fullwidth = false) {
    	    	global $sf_sidebar_config;
    	    	
    	    	if (is_singular('portfolio')) {
    	    		$sf_sidebar_config = "no-sidebars";
    	    	}
    	    	
    			/* CHANGE - TO INCLUDE A 50% WIDTH ROW CLASS */
    			if ( $col_width == 'fiftyPercent' ) {
    				$fiftyClass = 'rowFiftyPercent'; 
    			} else {
    				$fiftyClass = ''; 
    			}
    			
    	        $output = '';
    	        if ( strpos($position, 'first') !== false ) {
    	        	if ($fullwidth) {
    					/* ANDYP CHANGE - TO INCLUDE A 50% WIDTH ROW CLASS */
    	            $output = ( !empty($_GET['spb_debug']) &&  $_GET['spb_debug']=='true' ? "\n" . '<!-- START row -->' ."\n" : '' ) . '<div class="row fw-row '.$fiftyClass.'">';            
    	        	} else if ($sf_sidebar_config == "no-sidebars") {
    	        	$output = ( !empty($_GET['spb_debug']) &&  $_GET['spb_debug']=='true' ? "\n" . '<!-- START row -->' ."\n" : '' ) . '<div class="container"><div class="row">';
    	        	} else {
    	        		$output = ( !empty($_GET['spb_debug']) &&  $_GET['spb_debug']=='true' ? "\n" . '<!-- START row -->' ."\n" : '' ) . '<div class="row '.$fiftyClass.'">';
    	        	}
    	        }
    	        return $output;
    	    }
    in reply to: Extra Class Name Inheritance #65010
    parkourgenerations
    Member
    Post count: 22

    No worries Melanie and Ed! Look forward to it.

    Cheers.

    in reply to: Extra Class Name Inheritance #64933
    parkourgenerations
    Member
    Post count: 22

    OK, thanks.

    in reply to: Extra Class Name Inheritance #64914
    parkourgenerations
    Member
    Post count: 22

    Hmm. OK, let’s make sure we’re both doing the same thing.

    1. On the child TEXT element, click on the edit ‘pen’ icon to bring up options for the text.
    2. Edit the ‘Extra Class Name’ to ‘ChildCLASS’.
    3. Click Save.

    4. On the parent ROW element, click on the edit ‘pen’ icon to bring up options for the row.
    5. Edit the ‘Extra Class Name’ to ‘ParentCLASS’.
    6. Click Save.

    7. Return back to the the child TEXT element and look at the ‘Extra Class Name’. It should have now changed to ‘ParentCLASS’ and is not ‘ChildCLASS’.

    This doesn’t happen for you?

    in reply to: Extra Class Name Inheritance #64894
    parkourgenerations
    Member
    Post count: 22
    This reply has been marked as private.
    in reply to: Extra Class Name Inheritance #64891
    parkourgenerations
    Member
    Post count: 22

    Yes. The text box looses it’s extra class and is replaced by the parent’s one. It seems that the parent’s extra class take precedent over all of the children’s extra classes.

    in reply to: Extra Class Name Inheritance #64882
    parkourgenerations
    Member
    Post count: 22

    Thanks Kyle, but no, that CSS was just an example.
    My issue is that the parent “Extra Class Name” entry box in the swift page builder overrides the child one.

Viewing 7 posts - 16 through 22 (of 22 total)