• Hi,
    I am using the swift theme and have changed several code-lines within the theme. But after every plugin-update I need to redo the changes. Is it possible to make it permanent?
    – A child theme? Doing changes inside a childtheme of the original swift theme?
    – Code Injection in a way?

    I will list my personal changes below, so that you get an idea of my changes:

    
    At first changes, that will add a link to the non-amp-pages at the top of each page with a special design
    
    # TEMPLATES - DESIGNMANAGER - SWIFT
    # PAGE.PHP at the beginning
    <?php global $redux_builder_amp;
    amp_header(); ?>
    <div class="sp">
    //NEW
    <div style="background-color: #ffffff;border-radius: 10px;margin: 0 20px 0 20px;"><span style="font-size: 120%;"><?php amp_non_amp_link(); ?></span></div>
    //END
    <div <?php if(!checkAMPforPageBuilderStatus(get_the_ID())){ ?>class="cntr"<?php } ?>>
    
    # SINGLE.PHP at the beginning
    <?php global $redux_builder_amp; ?>
    <?php amp_header(); ?>
    <?php if($redux_builder_amp['single-design-type'] == '1'){?>
    //NEW
    <div style="background-color: #ffffff;border-radius: 10px;margin: 0 20px 0 20px;"><span style="font-size: 120%;"><?php amp_non_amp_link(); ?></span></div>
    //END
    <div class="sp sgl">
    
    # INDEX at the beginning
    <?php global $redux_builder_amp; ?>
    <?php amp_header(); ?>
    //NEW
    <div style="background-color: #ffffff;border-radius: 10px;margin: 0 20px 0 20px;"><span style="font-size: 120%;"><?php amp_non_amp_link(); ?></span></div>
    //END
    <div class="cntr b-w">
    
    And this is to hide some symbols in the menu
    
    #accelarated-mobile-pages / classes / claa-ampforwp-walker-nav-menu.php
    #two incidents at the top
       //$output .= "\n$indent<input type=\"checkbox\" id=\"drop-$column\"><label for=\"drop-$column\" class=\"toggle\"></label><ul class=\"sub-menu\">\n";
        $output .= "\n$indent <ul class=\"sub-menu\">\n";
    
    Here I get rid of the font icomoon, because I don't need it
    
    #ACCELERATED-MOBILE-PAGES\TEMPLATES\DESIGN-MANAGER\SWIFT\STYLE.PHP
    Line 46 /* */ comment
    /*@font-face {font-family: 'icomoon';font-display: auto;font-style: normal;font-weight: normal;src:  local('icomoon'), local('icomoon'), url('<?php echo plugin_dir_url(__FILE__) ?>fonts/icomoon.ttf');}*/
    
    Here I fix the usage of Poppins, because it is sometimes not working from the plugin-options.
    
    #ACCELERATED-MOBILE-PAGES/COMPONENTS/COMPONENTS-CORE.PHP
    Line 345 after <HEAD>
    <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Poppins">

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Child Theme? Is it possible?’ is closed to new replies.