Posts by gerardbm

16 posts
  • Exclusive Author
  • Has been a member for 0-1 years
  • Spain
gerardbm says

In my opinion we don’t need an extra menu… Why don’t we style differently the menu according to the screen size or device type? I’ve been using this technique and never had any trouble with it.

Yes that is what I also think, actually. But I wonder how to make it really respnosive and usable when we have a lot of links. Probably making a multi drop-down?

For example Avada uses a drop-down list instead of a select box, but they keep the two menus even with the same HTML structure. That’s really strange when they found a solution for the same HTML (UL, LI, .sub-menu…).

16 posts
  • Exclusive Author
  • Has been a member for 0-1 years
  • Spain
gerardbm says

Hi!

I’ve noticed that most of the premium themes have two menus in the code. For example, the normal menu for large screens, using UL > LI tags, and then the responsive menu for smaller screens, using SELECT > OPTION. This second menu normally is generated using a jQuery script through the first menu, which is dynamic from the WordPress menus page.

So if you have, let’s say, a menu with 7 links and 10 sub-links into each one, that means you have 70 links in the HTML plus 70 the same links! (When the screen is larger than 960px, display the UL tags and hide the SELECT box, and when the screen is smaller than 960px, hide the UL and display the SELECT box).

In other WordPress themes, they don’t use a SELECT box for the responsive menu, but they use a different solution also duplicating the links, so at the end they have the same menu twice!

Do you think is it possible to find better practices for the responsive menu? Is it a real problem or, by the contrary, is it accepted for Google and searchers? Which is the best solution to make a responsive menu?

I need your opinion :)

16 posts
  • Exclusive Author
  • Has been a member for 0-1 years
  • Spain
gerardbm says

Using get_option is not productive and for this reason many authorsimplement a custom function and save all options in a single multidimensional array. So you have to call get_option only one time and get everything in a custom function. Also this allows to keep the wp_option table clean. Using globals everytime is not necesary if you create a custom function. I personally try to use global as little as possible. Anyways, here’s how I did it in SMOF some time ago:
function smk_get_option($option_name, $default=""){
   global $smof_data;
   return (isset($smof_data[$option_name])) ? $smof_data[$option_name] : $default;
}

This is totally helpful for me, thank you!

I will do the same using OT :)

16 posts
  • Exclusive Author
  • Has been a member for 0-1 years
  • Spain
gerardbm says

At this point i make a theme that uses Option-Tree very ise to use. Redux is pretty good. If you do not want to complicate things you can try and customizer.
I recommend Option-Tree …

Acutally one more advantage of Option-Tree is the validation using Them Check. It returned 0 errors :-)

16 posts
  • Exclusive Author
  • Has been a member for 0-1 years
  • Spain
gerardbm says

Which options framework for WordPress do you recommend?

A lot of good themes are using SMOF, but this framework is not supported anymore since some weeks ago. That means that some themes will need to migrate (mainly to Redux). SMOF had good improvements, though: Google Fonts Preview, radio selector with images, easy to integrate in a theme.

Option-Tree is also a very good option, I think. It’s the Envato’s options framework, easy to install and it includes an UI builder (for me it doesn’t save the changes at the moment). One of the disadvantages is the array: every array includes a lot of elements. The type of options is very complete also. I wonder which good Premium Themes are using it.

The most recent and popular framework is Redux. It’s similar to SMOF, but very new, so it hasn’t a lot of information about it. For me, one disadvantage is that in order to retrieve the options, you need to call the variable with GLOBAL (SMOF also).

Is there a good options framework that uses the get_option() function without modifications? (such of_get_option() or (ot_get_option()).

Finally, a framework of own creation. I already have one with some types of options. The problem of my own page options is the design: I can group the options in sections, but lineal (title, open, options, close) and represent it as a table or inside a jQuery accordion; but I don’t know how to redistribute the options for a tabbed javascript (like others: SMOF, OT, Redux…).

Do you recommend to use one options framework or an options page of own creation? I’m really interested on using the native function get_options() to retrieve theme. More than 100 options already retrieved in a full theme; and I don’t like to call the GLOBAL variable every time.

16 posts
  • Exclusive Author
  • Has been a member for 0-1 years
  • Spain
gerardbm says

Recently I decided to use the SMOF Options Framework in my WordPress theme, instead of my own options page. (For a lot of reasons, but mainly because I really like the tabs organization of the sections, and it was too much to implement it by myself). I think that switching it is easy, and having my options array it should be fast (copy&paste + editing some types).

But I’m having a problem that I can’t understand. First I create a new section in the array:

$of_options[] = array("name" => "Main options", "type" => "heading");

Then I add a predefined option with a select box:

$of_options[] = array("name" => "Normal Select", "desc" => "Normal Select Box.", "id" => "example_select", "std" => "three", "type" => "select", "options" => $of_options_select );

At the moment, it works perfect. The problem appears when I change the ID “example_select” to a new name, for example “ft_content_layout” or any other name… The option disappears from the options page. Why is that?

16 posts
  • Exclusive Author
  • Has been a member for 0-1 years
  • Spain
gerardbm says

I was just thinking about this too. Some people seem to whip one out in less than a month. That just seems crazy fast to me. I can’t come up with something original and develop it in that short period of time. It typically takes me at least six months. It’s the design that takes me the longest though. I typically hate most of the stuff I design the first time around. What about you?

+1, 100%

16 posts
  • Exclusive Author
  • Has been a member for 0-1 years
  • Spain
gerardbm says

I think that this theme has potential, but you need to fix these details/errors. For example, the searcher box has elements without alignment, the header is too simple, the design of the drop-down menu really needs to be different. Well, in general, you only need to redefine the full stylesheet fixing the margins/paddings, and definetly use FontAwesome instead of all the icons. The responsive design also needs to be improved, mainly the post images (resizing them).

16 posts
  • Exclusive Author
  • Has been a member for 0-1 years
  • Spain
gerardbm says

Someone? :)

16 posts
  • Exclusive Author
  • Has been a member for 0-1 years
  • Spain
gerardbm says

Hi all!

I’m developing a WordPress theme, and I’m not sure if the name is correct. According to this 3 Envatos’ requirements:

1 – “This is the File Name” – Capitalize the first letter in each word. Small words like “of” and “an” may be lowercase. 2 – “Template with CMS” – Capitalize acronyms and abbreviations like XML and PSD. 3 – “Apple-like Design” – Do not describe what your item is similar to in its title, describe what it actually is.

The name of my theme is SEOzeta. SEO means Search Engine Optimization, as you already know. I decided this name ‘cause my theme includes everything what is needed for SEO, also the information architecture and structure, even with SEO in Social Media (Open Graph, Twitter Cards, Google Plus author)...

Should I write SEOzeta or Seozeta? Should I change the name, avoiding the word SEO?

Thank you! ^^

by
by
by
by
by
by