Skip to content

Instantly share code, notes, and snippets.

@ocariocawebdesign
Created January 23, 2020 10:50
Show Gist options
  • Save ocariocawebdesign/c557a45a008da90f248e5252109d4628 to your computer and use it in GitHub Desktop.
Save ocariocawebdesign/c557a45a008da90f248e5252109d4628 to your computer and use it in GitHub Desktop.
header.php - OceanWP
<?php
/**
* The Header for our theme.
*
* @package OceanWP WordPress theme
*/ ?>
<!DOCTYPE html>
<html class="<?php echo esc_attr(oceanwp_html_classes()); ?>" <?php language_attributes(); ?><?php oceanwp_schema_markup('html'); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<link rel="profile" href="https://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<!------------------------------------->
<style>
/*.container_form_busca{
display: grid;
grid-template-columns:...
}
Exemplo... Colocar CSS aqui*/
</style>
<!--Arquivo header.php tema Oceanwp-->
<!--Aqui começa o form de busca-->
<!--Criei essa div para envolver o form de busca/ É necessário criar um CSS para estilizar o form-->
<div class="container_form_Busca">
<form method="get" class="searchform" id="searchform" action="<?php echo esc_url(home_url('/')); ?>">
<input type="text" class="field" name="s" id="s" placeholder="<?php esc_html_e('Search', 'oceanwp'); ?>">
<?php if ('any' != $post_type) { ?>
<input type="hidden" name="post_type" value="<?php echo esc_attr($post_type); ?>">
<?php } ?>
<?php do_action('wpml_add_language_form_field'); ?>
</div>
<!--Aqui finaliza o form de busca-->
<!------------------------------------->
<?php do_action('ocean_before_outer_wrap'); ?>
<div id="outer-wrap" class="site clr">
<?php do_action('ocean_before_wrap'); ?>
<div id="wrap" class="clr">
<?php do_action('ocean_top_bar'); ?>
<?php do_action('ocean_header'); ?>
<?php do_action('ocean_before_main'); ?>
<main id="main" class="site-main clr" <?php oceanwp_schema_markup('main'); ?>>
<?php do_action('ocean_page_header'); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment