View functions.php
function onepress_site_header(){
?>
<header id="masthead" class="site-header" role="banner">
<div class="container">
<div class="site-branding">
<?php
onepress_site_logo();
?>
</div>
<!-- .site-branding -->
View functions.php
remove_filter('excerpt_more', 'onepress_custom_excerpt_length');
function wpdocs_custom_excerpt_length( $length ) {
return 10;
}
add_filter( 'excerpt_length', 'wpdocs_custom_excerpt_length', 999 );
View custom section.php
function add_my_custom_section(){
?>
<section id="my_section" class="my_section section-padding onepage-section">
<div class="section-fullwidth">
<div class="section-title-area">
<h5 class="section-subtitle"> My section subtitle</h5>
<h2 class="section-title"> My section title</h2>
</div>
<div class="container">
<div class="row">
View action.php
function add_custom_button($section_id){
if ( $section_id == 'map') {
?>
<div class="section-title-area">
<h2 class="section-title">Your title here</h2>
</div>
<?php }
}
View widget.html
<div class="about-me">
<img src="https://demos.famethemes.com/boston/wp-content/uploads/sites/23/2016/08/profile.jpg" alt="">
<span>Victoria Stephens</span>
<p>Share biographical information to fill out your profile. This may be shown publicly.
</p>
View functions.php
function add_html_before_header(){
?>
place your html code here
<?php
}
add_action( 'onepress_before_site_start' , 'add_html_before_header' );
View content.php
<?php
/**
* Template part for displaying posts.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package OnePress
*/
?>
View taxonomy-coupon_store.php
<?php
/**
* The main template file.
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
View old-loop.php
<?php /* Start loop */ ?><?php global $data; ?>
<?php if (have_posts()) : ?>
<?php $count = 0; ?>
<?php while (have_posts()) : the_post(); ?>
<?php $count++; ?>
<?php if($data['uxde_smallarticles']): ?>
<?php if ($count == 1) : ?>
View loop.php
<?php /* Start loop */ ?><?php global $data; ?>
<?php if (have_posts()) : ?>
<?php $count = 0; ?>
<?php while (have_posts()) : the_post(); ?>
<?php $count++; ?>
<?php if($data['uxde_smallarticles']): ?>
<?php $last = ($count%2==0) ? 'last' : ''; ?>