Sorting Problem
Sorting Problem
Sorting Problem
In that last block, there’s a mix of bracketed and bracket-free if statements that make it hard to debug. I’d suggest rewriting it like this and using indentation to make it easier to see what is going on at a glance: if (is_page(esc_url( wp_get_current_url() . ‘/?sortby=asc’))) { if ( $newQuery->have_posts() ) { while ( $newQuery->have_posts() … Read more
It’s an inline style. Just change the preferred color from the following tag: <p class=”has-text-align-center has-black-color has-text-color has-background has-medium-font-size” style=”background-color:#(Preferred color)”>…</p>
This is due to the wp_nav_menu parameter fallback_cb: If the menu doesn’t exist, a callback function will fire. Default is ‘wp_page_menu’. Set to false for no fallback. You have not specified an alternative, so it uses the default, wp_page_menu. You could create your own function to display a page menu with the proper markup, or … Read more
As far as I can tell, the most right column is being nested within the middle reviews column. I imagine that somewhere in the code (template, sidebar, or widget) there is a conditional statement causing your middle column to not get closed off before the right column starts. To illustrate what is happening, this is … Read more
In /wp-content/themes/centric-pro/style.css, delete line 88 through line 113 this removes all the font-face declarations. On line 88 paste the following: @font-face { font-family: ‘GothamRounded-Bold’; font-style: normal; font-weight: 400; src: url(‘fonts/GothamRounded-Bold.eot’) format(’embedded-opentype’), url(‘fonts/GothamRounded-Bold.otf’) format(‘opentype’), url(‘fonts/GothamRounded-Bold.woff’) format(‘woff’), url(‘fonts/GothamRounded-Bold.ttf’) format(‘truetype’), url(‘fonts/GothamRounded-Bold.svg#GothamRounded-Bold’) format(‘svg’); } @font-face { font-family: ‘GothamRounded-Light’; font-style: normal; font-weight: 400; src: url(‘fonts/GothamRounded-Light.eot’) format(’embedded-opentype’), url(‘fonts/GothamRounded-Light.otf’) format(‘opentype’), url(‘fonts/GothamRounded-Light.woff’) format(‘woff’), … Read more
I took a look at your site, and are you sure you dont want to make the .wrapper clickable? boxed-layout is your whole site, so if you made that clickable the whole site would be a link. However, if I look at your question, the answer would be to use jQuery. <script> $(“.body.boxed-layout”).click(function(){ window.location = … Read more
This is standard WordPress functionality, contained in previous_post_link and next_post_link. You don’t need to edit functions.php. Just add to your template: <div class=”buttons”> <span class=”previous-button”><?php previous_post_link() ?></span> <span class=”next-button”><?php next_post_link() ?></span> </div> Now you can style the buttons with css. Follow the codex links for customizing options to the functions.
Do you understand the bootstrap framework at all? Your theme has implemented a column width that is smaller than you would probably like. Your content area is wrapped in an offset column that is 50% of the container width. <div class=”col-lg-6 col-lg-offset-3″> <!– content –> </div> If you want to increase the width of your … Read more
Wrap the code like this to make it not conflict with other JS libraries wordpress loads. jQuery(document).ready(function($) { // code }); OR (function($) { // code })(jQuery);